Convert attachments all [Deleted]

AndyB

Well-known member
AndyB submitted a new resource:

Convert attachments all - Converts attached PNG images to JPG images.

Premium upgrade:

This XF2 add-on along with the entire collection can be purchased for $35.00 USD. Your Premium upgrade will allow you to download as many XF2 add-ons as you like for one year. Please see the entire collection located in the Resources area at this URL:

https://www.xf2addons.com/

Description:

Converts attached PNG images to JPG images.

PNG images are very wasteful as they are 10 times the size of a JPG image of same size. By default all PNG images...

Read more about this resource...
 
Why is this conversion useful?
Because JPGs are smaller in size, and they are widely supported across almost every platform and service imaginable. If you have a forum community where members post a lot of images daily, using JPG format will help these pictures load faster - a feature that members who suffer from slow internet speeds, will appreciate greatly.

PNGs are generally larger than JPGs, use up additional storage space, and potentially slow down the responsiveness of web pages. If you wish not to overwhelm your users' devices, you may want to go with a forum JPG converter - which will give all your users quick loading times with minimal compromise on quality.
 
I added convertattachmentsall

Got this message. If this is correct, how do I do so? Also how many can I do at one time?

IMG_3992.webp
 
Hello,

I just want to add a massive thanks to @AndyB for this plugin.

For context, my forum's storage has been extended to a CloudFlare R2 bucket in the free tier. We have absolutely no chance to hit the free limits for the millions of monthly A and B operations (our total this month has been 250 class A out of 1 million free and 17k class B out of 10 million free), but the size... well, that just got to around 12GB, and CloudFlare invoiced me for 3 cents/month for the 2GB exceeding the free tier. Lots of love to CloudFlare for their awesomeness.

This got me curious, since the forum's policy for the past two decades was very strict. And whaddya know - some guys were pasting their photos in the text editor which saved them as PNGs instead of uploading the JPGs, because they just didn't know any better. Nearly 7000 PNGs bigger than 200kB.

The script ran for a couple hours and now the R2 bucket shrank down to 6.3GB. CloudFlare won't have reasons to invoice me for some time.

So that's the intention of the plugin, and I can testify it works well with the CloudFlare storage plugin.
 
Back
Top Bottom