[OzzModz]/[Kirby] Convert uploaded PNG images to JPEG

[OzzModz]/[Kirby] Convert uploaded PNG images to JPEG 2.0.0

No permission to download
Compatible XF 2.x versions
  1. 2.1
  2. 2.2
License
MIT
Visible branding
No
Small addon that will convert PNG images to JPEG if they are larger than the maximum allowed attachment filesize.

Please note that transparency will be lost in this case.
I did implement code to detect transparency and ignore the file if it does contain transparency, but that quite simply does not make much sense to me so the code to do this is commented out:
If the image filesize is larger than allowed maximum and it is not being converted to JPEG, the upload would fail.


Make a small donation if you love this addon


Originally coded by @Kirby, in this thread, https://xenforo.com/community/threa...f-phone-uploads-and-chrome-copy-paste.183606/
Author
Ozzy47
Downloads
60
Views
1,149
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from Ozzy47

Latest updates

  1. [OzzModz]/[Kirby] Convert uploaded PNG images to JPEG for XenForo 2.1+ Update 2.0.0

    Fixed: Added a missing class extension that prevented the addon from working.

Latest reviews

This is pretty useful. Allows your members to upload screenshots that are generally saved in PNG format and can get quite large to get converted to JPG on the fly saving both storage space and bandwidth.
Ozzy47
Ozzy47
Yes it is certainly helpful. Glad Kirby shared it with the community. Thanks for leaving a review.
Top Bottom