First get your operations right. Then try to optimise. You create $med as a copy and then you overwrite that copy with $img->scale. How about this style: $img->copy()->scale(xpixels=>750)->write(file=>...); I will assume that this will free all memory once done writing to disk. If you intend to parallelise (and your server is able to) then you could create one sub to do all the processing for just one file. Then either call this sub sequentially or in parallel.
In reply to Re: Imager: Gateway Timeout
by bliako
in thread Imager: Gateway Timeout
by cristofayre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |