laravelevetools/eveimages

一个简化从eve API获取图片的库。

1.1 2024-07-30 11:35 UTC

This package is auto-updated.

Last update: 2024-08-30 11:48:56 UTC


README

一个独立的图片工具,用于从EVE获取图片。基于 eveseat/services/Image/Eve,但没有包含所有座位特定的内容。

基本用法

use LaraveEveTools\EveImages\Image;
//Generate a full html <img> tag
(new Image('characters', $character_id, 64))->html()
//Generate image url
(new Image('characters', $character_id, 64))->url()

变量

类型

允许以下选项。

[ 'characters', 'corporations', 'alliances', 'factions' ]

大小

允许以下选项

[ 32, 64, 128, 256, 512, 1024 ]

lazy

如果使用懒加载,您需要在前端处理图片的加载。
图片的URL将存储在'data-src'属性中。