Page 1 of 1

Raspberry pi slow convert

Posted: 2016-05-25T02:53:53-07:00
by max246
Hello,

I am trying to convert about 50 images ( jpg ) into gif and the software just get stuck after rendered few of them.

Do I need to have any special commands for raspberry pi?

Version:
$ convert --version
Version: ImageMagick 6.8.9-9 Q16 arm 2016-05-16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
Output:
$ convert -verbose -treedepth 4 -delay 90 *.jpg timelap.gif
24.05.16_00.22.25.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 203KB 0.460u 0:00.589
24.05.16_01.22.29.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 206KB 0.450u 0:00.449
24.05.16_02.22.34.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 201KB 0.440u 0:00.460
24.05.16_03.22.38.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 410KB 0.520u 0:00.540
24.05.16_04.22.41.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 25.4KB 0.360u 0:00.419
24.05.16_05.22.46.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 25.4KB 0.360u 0:00.369
24.05.16_06.22.49.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 436KB 0.510u 0:00.519
24.05.16_07.22.54.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 520KB 0.520u 0:00.529
24.05.16_08.22.57.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 534KB 0.530u 0:00.580
24.05.16_08.53.27.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 219KB 0.190u 0:00.179
24.05.16_08.54.06.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 227KB 0.190u 0:00.189
24.05.16_08.55.27.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 226KB 0.180u 0:00.190
24.05.16_09.01.23.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 226KB 0.180u 0:00.189
24.05.16_09.06.27.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 230KB 0.180u 0:00.179
24.05.16_09.11.32.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 230KB 0.180u 0:00.189
24.05.16_09.16.35.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 231KB 0.180u 0:00.200
24.05.16_09.21.40.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 230KB 0.180u 0:00.189
24.05.16_09.26.43.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 230KB 0.190u 0:00.280
24.05.16_09.31.48.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 230KB 0.190u 0:00.199
24.05.16_09.36.52.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 229KB 0.190u 0:00.220
24.05.16_09.41.56.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 229KB 0.190u 0:00.179
24.05.16_09.47.00.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 229KB 0.190u 0:00.199
24.05.16_09.52.04.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 229KB 0.190u 0:00.210
24.05.16_09.57.08.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 229KB 0.190u 0:00.199
24.05.16_10.02.13.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 229KB 0.190u 0:00.199
24.05.16_10.07.16.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 229KB 0.190u 0:00.200
24.05.16_10.12.21.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 226KB 0.190u 0:00.209
24.05.16_10.17.24.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 227KB 0.190u 0:00.250
24.05.16_10.22.29.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 226KB 0.190u 0:00.199
24.05.16_10.27.33.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 227KB 0.190u 0:00.200
24.05.16_10.42.46.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 226KB 0.190u 0:00.230
24.05.16_10.47.49.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 227KB 0.320u 0:08.330
24.05.16_10.52.53.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 227KB 0.370u 0:10.189
24.05.16_10.57.57.jpg JPEG 640x480 640x480+0+0 8-bit sRGB 226KB 0.260u 0:02.220

Re: Raspberry pi slow convert

Posted: 2016-05-25T04:10:25-07:00
by magick
Its likely you are limited in memory resources so the ImaegMagick pixel cache is written to disk. Disk can be up to one thousand times slower than memory. Even with the pixel cache pushed to disk, some memory consumption is required for ImageMagick to process the images. Its likely your Pi is being thrashed, memory is being swapped to disk and back. Its likely the command will complete but it will be slow. The solution is to use the Q8 version of ImageMagick (less memory consumption), increase your memory on your Pi, or use a desktop (Linux or Windows).