in reply to Imager: Gateway Timeout
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Imager: Gateway Timeout
by cristofayre (Sexton) on Dec 24, 2019 at 12:28 UTC | |
by marto (Cardinal) on Dec 24, 2019 at 12:31 UTC | |
|
Re^2: Imager: Gateway Timeout
by cristofayre (Sexton) on Dec 24, 2019 at 12:20 UTC |