Expose
Expose copied to clipboard
integer expression expected
On my Raspberry Pi running Raspbian, I get
Reading files...................................../home/cherron/bin/expose.sh: line 402: [: 460460460460460460460460460460460460460460460460: integer expression expected
raspberry pi, heh. That's interesting.
Is that on a bash shell? That line references the image dimensions, do you get proper info from these commands?
identify -format "%w" ./imagepath.jpg
convert ./imagepath.jpg -resize 200x200 -depth 4 +dither -colors 7 -unique-colors txt:-
identify -format "%w" myfile.gif outputs "460"x15 for the 15 frames in that animated gif. It does the same on a different Ubuntu 14.04 system I have. Turns out they both use the same version of ImageMagick. Version: ImageMagick 6.7.7-10 2014-04-09 Q16 http://www.imagemagick.org
On Wed, Oct 14, 2015 at 9:38 PM, Jack Qiao [email protected] wrote:
raspberry pi, heh. That's interesting.
Is that on a bash shell? That line references the image dimensions, do you get proper info from these commands?
identify -format "%w" ./imagepath.jpg
convert ./imagepath.jpg -resize 200x200 -depth 4 +dither -colors 7 -unique-colors txt:-
— Reply to this email directly or view it on GitHub https://github.com/Jack000/Expose/issues/6#issuecomment-148251443.
that makes sense then. I'm not sure how to handle animated gifs in the source image though. The entire script basically assumes that the output images are jpegs (which for the photography focus I think makes sense) and it will take a bit of refactoring to support different output image formats.
I'm leaning towards just skipping over animated gifs or re-encoding them as a static jpeg. Does the script work ok otherwise, without the animated gif?