Firefox PHP

resize (imagemagick) images while embed_images uploads

Posted by salmobytes 
resize (imagemagick) images while embed_images uploads
September 18, 2017 10:58PM
embed_images has "maximum width and height for showing" settings.
Does this mean a large images is uploaded as is but shown at a smaller size?

Wouldn't it be handy to use imagemagick at upload time, in order to knock the image down to a reasonable size before attempting to show it?

Where in embed_images.php would be the right place to intervene, and scale down the just now uploaded image?



Edited 1 time(s). Last edit at 09/18/2017 10:59PM by salmobytes.
Re: resize (imagemagick) images while embed_images uploads
September 19, 2017 04:14AM
It needs to be written for gd and Imagemagick

Embed images is not where the initial handling happens.

Look at the Hooks.
\include\posting\action_attachments.php
Re: resize (imagemagick) images while embed_images uploads
September 23, 2017 01:56PM
Thank you. include\posting\action_attachments.php
Sorry, only registered users may post in this forum.

Click here to login