Attached Images Resizer, picture converter 

Professional Surveyor Boards » Ask an Expert » Attached Images Resizer, picture converter

Name Message
DUFFY
Posts: 713

Joined: 10/8/2019
Topic  Attached Images Resizer, picture converter       Flag »  Reply »
This is not about just resizing displayed images as discussed in the ReIMG Image Resizer thread, but an extension that hooks itself to the attachment function and post-processes files if they are images.

The idea is to optimize forum performance by taking care of image type and file size. People tend to upload pics directly from their camera, resulting in megapixel images with several MB in size. Even if the displayed image is downsized to fit the max width of the posting area it is still stored and loaded in full size, eating away storage space on the server, as well as bandwidth and results in longer page load times (important for search engine rating).

So if a forum member uploads a picture as attachment, the file should automatically be resized to a configured value (like 800x600 or 600x800 keeping the aspect ratio) and converted to JPG with a configured JPG quality setting (like 80%) if it's a PNG or GIF (with the exception of animated GIFs; if such distinction is not possible than no GIF conversion, so that animated GIFs are still possible). AFAIK such functionality should easily be possible using ImageMagick, which is available on any webserver.

Such picture treatment has a huge impact. Right now I do that processing on my Vanilla forum manually (which is cumbersome if people upload a lot of pictures), and I can tell that it brings down pictures file sizes from up to 5 MB for regular pics directly coming from a camera to less than 100 KB most of the times.

It would be really great to have such automatic picture attachment treating available.
  Sunday, December 29, 2019 at 11:54:51 PM
ROBINSON
Posts: 235

Joined: 5/8/2019
Reply  Re: Attached Images Resizer, picture converter Flag »  Reply »
Great for sure, unfortunately with ReIMG it's all done on the client side, not on the server. In the end I'll use what's available, so that's great news the ReIMG is becoming an extension, but maybe someone else is interested in my described server side approach?
  Sunday, December 29, 2019 at 11:55:55 PM
RUIZ
Posts: 183

Joined: 5/16/2019
Reply  Re: Attached Images Resizer, picture converter Flag »  Reply »
As said, because of storage space and page loading times. People tend to upload images directly from their cameras or mobile phones with multiple megapixel and several MB in size. We have a lot of pics in our forum and without server side re-formating / converting it has a huge negative impact especially on page loading times. It's not only about user experience (there are still a lot of people with slow internet access, me included) but also about search engine rating, because page loading time is a major factor for search engines.
  Sunday, December 29, 2019 at 11:56:10 PM
DALTON
Posts: 97

Joined: 11/17/2019
Reply  Re: Attached Images Resizer, picture converter Flag »  Reply »
Um, if you let the images resize on client side it wont take any resources from your server.
You can still decide the size and format the image shall have when it is uploaded.

You just save a lot of power on the server because all the work is done on client side, BEFORE upload to the server.

Maybe my understanding is not correct, but that is exactly what you are looking for!?

  Sunday, December 29, 2019 at 11:56:53 PM
disruptivetalk
Posts: 171

Joined: 8/25/2019
Reply  Re: Attached Images Resizer, picture converter Flag »  Reply »
Very strange, we just recently attended a Google AdWords seminar and we were told site speed / page loading time is an important factor for determining the importance of a site, which goes into relevance and ranking. But they also told us that it's a total split view between search engine and AdWords, so this indeed may be handled differently between the search engine and AdWords algorithms.

Nevertheless in our current forum we have exactly that problem, people uploading a lot of pics directly from their cameras and I can see myself that I can watch an image appear line by line because of it's size of up to 5 MB. Once I've resized down to 800x600 / 600x800 at 80% JPG-quality (server-side) filesize is only less than 100 kb in most cases, and pages load instantly.

All in all I'd prefer service-side downsizing and converting. Pics at 800x600 / 600x800 and 80% quality are more than enough for our forum use, we just don't need it HiDef, and there are just more advantages to it then client-side manipulation.
  Sunday, December 29, 2019 at 11:57:14 PM
DUFFY
Posts: 713

Joined: 10/8/2019
Reply  Re: Attached Images Resizer, picture converter Flag »  Reply »
@Holger, it's not about saving power on the server, but preservation of storage space on the server (OK, that's not the main incentive, but we have a lot of pictures in our forum) and especially saving bandwidth and reduce page load times.

All what's done client-side still requires the whole data to be loaded into the user's browser first to then be manipulated.

So if you have a forum thread where someone uploaded 10 images each 5 MB in size your browser would first have to load 50 MB in data which are then to be manipulated. If those 10 images are already downsized and re-formated server-side on upload it's most likely will only be about less than 1 MB in data that has to be loaded, so this makes a huge difference.
  Sunday, December 29, 2019 at 11:57:30 PM
ROBINSON
Posts: 235

Joined: 5/8/2019
Reply  Re: Attached Images Resizer, picture converter Flag »  Reply »
I've been asking for this feature for years. I've given up, I do not have the skills to make such an extension.

It makes so much sense to make users lives easier. Upload any pic, and it gets automatically resized when it's uploaded to the server to a reasonable max size as set by admin. It saves disk space, bandwidth, etc. It's really win-win. For some reason everyone thinks ReIMG is amazing but really it's not even close to what we are looking for.

If you want to know more details I would definitely recommend checking it out onlineconvert
  Sunday, December 29, 2019 at 11:59:10 PM

Professional Surveyor Boards » Ask an Expert » Attached Images Resizer, picture converter

 
» Reply to Attached Images Resizer, picture converter Topic

In order to post a new message, you must first be logged into an account.