artuu/flarum-imager

This package is abandoned and no longer maintained. No replacement package was suggested.

Allows you to set default sizes for photos uploaded to the forum and change their size in the url.

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:flarum-extension

0.1.0 2020-06-14 18:38 UTC

This package is auto-updated.

Last update: 2024-05-15 03:53:33 UTC


README

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f417274757575752f666c6172756d2d696d616765722e737667 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f417274757575752f666c6172756d2d696d616765722e737667 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f417274757575752f666c6172756d2d696d616765722e737667 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f41727475752f666c6172756d2d696d616765722e737667 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d79656c6c6f772e737667

Allows you to set default sizes for photos uploaded to the forum and change their size in the url.

💼 How does it work?

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.

📚 What you should know

  • 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
  • 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.

🚀 Installation

To download the extension you can use Bazaar or install it through composer:

composer require artuu/flarum-imager

✨ Demo

Screenshots from:

Screenshot from Imager Settings:

Imager Settings

🔗 Links

📝 License

Copyright © 2020 Artuu.
This project is MIT licensed.

Extension created by @Artuu, the owner of My Kill