Expose icon indicating copy to clipboard operation
Expose copied to clipboard

integer expression expected

Open realgeek opened this issue 10 years ago • 3 comments
trafficstars

On my Raspberry Pi running Raspbian, I get Reading files...................................../home/cherron/bin/expose.sh: line 402: [: 460460460460460460460460460460460460460460460460: integer expression expected

realgeek avatar Oct 14 '15 18:10 realgeek

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:-

Jack000 avatar Oct 15 '15 01:10 Jack000

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.

realgeek avatar Oct 15 '15 20:10 realgeek

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?

Jack000 avatar Oct 15 '15 22:10 Jack000