What does the -define jpeg:size option concretely do?
Posted: 2017-02-26T12:30:16-07:00
Hi,
After browsing the FAQ and this forum, I read that the -size option "causes ImageMagick to only store JPEG thumbnails in memory while its generating the montage layout. Without this option, the entire image is temporarily stored in memory until the montage page is generated."
I can't wrap my mind around this notion. Let's say I have a folder with 20k jpeg pictures (each one being a picture with a resolution of 256x256 pixels).
If I were to use "montage -monitor -size 256x256 -geometry 256x256+0+0 -mode concatenate -tile 10x10 '*_*.jpg' finalimage.tiff" to concatenate all my jpegs into a big tiff file, what would concretely happen during the process? Without the size option the finalimage.tiff would be stored in RAM during the whole process (and getting bigger and bigger) whereas if I had used the size option only the jpegs are stored in RAM? I don't really see how it can decrease the memory usage. Could someone explain it to me like I'm five years old? Thank you
After browsing the FAQ and this forum, I read that the -size option "causes ImageMagick to only store JPEG thumbnails in memory while its generating the montage layout. Without this option, the entire image is temporarily stored in memory until the montage page is generated."
I can't wrap my mind around this notion. Let's say I have a folder with 20k jpeg pictures (each one being a picture with a resolution of 256x256 pixels).
If I were to use "montage -monitor -size 256x256 -geometry 256x256+0+0 -mode concatenate -tile 10x10 '*_*.jpg' finalimage.tiff" to concatenate all my jpegs into a big tiff file, what would concretely happen during the process? Without the size option the finalimage.tiff would be stored in RAM during the whole process (and getting bigger and bigger) whereas if I had used the size option only the jpegs are stored in RAM? I don't really see how it can decrease the memory usage. Could someone explain it to me like I'm five years old? Thank you