Allows you to set default sizes for photos uploaded to the forum and change their size in the url.
The extension creates its own folder (public/assets/imager
), where it places images in a higher resolution. This extension allows you to set the size in the url, maximum up to the photo size. The default saving of photos (from flarum) also works.
- The images are in the above mentioned folder.
- The url syntax is as follows
- Favicon
http://localhost/assets/favicon?s=64
- Logo
http://localhost/assets/logo?s=60
- User avatar
http://localhost/assets/avatars/{user_avatarUrl}?s=100
- Favicon
- The variable
?s={size}
in the url indicates the size of the image that should display the extension. - You can set up a group of users who may have a larger avatar size.
To download the extension you can use Bazaar or install it through composer:
composer require artuu/flarum-imager
Screenshots from:
Screenshot from Imager Settings
:
Copyright © 2020 Artuu.
This project is MIT licensed.