Search found 15 matches

by RandomTroll
2019-07-11T13:31:15-07:00
Forum: Users
Topic: Images from 'Annals of Internal Medicine' seen as negatively-colo(u)red by ImageMagick
Replies: 3
Views: 6512

Re: Images from 'Annals of Internal Medicine' seen as negatively-colo(u)red by ImageMagick

What version of IM, on what platform? ImageMagick 6.9.10-53 Q16 x86_64 2019-07-06 https://imagemagick.org Copyright: © 1999-2019 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenMP(4.5) Delegates (built-in): bzlib cairo djvu fftw fontc...
by RandomTroll
2019-07-11T04:08:24-07:00
Forum: Users
Topic: Images from 'Annals of Internal Medicine' seen as negatively-colo(u)red by ImageMagick
Replies: 3
Views: 6512

Images from 'Annals of Internal Medicine' seen as negatively-colo(u)red by ImageMagick

ImageMagick displays images from 'Annals of Internal Medicine' as though they were negatively-colo(u)red. convert -negate emits an image that ImageMagick displays 'correctly'. All other X-based image displayers (e.g., Firefox, Opera, Gimp) display them correctly. fbida-master fails, reporting 'unsup...
by RandomTroll
2018-09-18T12:36:25-07:00
Forum: Users
Topic: ImageMagick quits when input file absent
Replies: 7
Views: 4797

Re: ImageMagick quits when input file absent

inotify monitors files and signals the monitoring program when they're created/deleted/written/read/had-privileges-changed... Because the webcams upload asynchronously I can't just set a timer to make thumbnails at fixed intervals. The problem isn't that IM can't open the file, it's that IM quits wh...
by RandomTroll
2018-09-18T08:10:43-07:00
Forum: Users
Topic: ImageMagick quits when input file absent
Replies: 7
Views: 4797

Re: ImageMagick quits when input file absent

man inotify will tell you what it does. It's a good guess that the file is unavailable; that would be new behavior for our webcams. There's already a delay such as you suggest. I asked on this forum how to keep this bit of ImageMagick code from core.c from making the program exit. Does the MagickEr...
by RandomTroll
2018-09-18T05:42:27-07:00
Forum: Users
Topic: ImageMagick quits when input file absent
Replies: 7
Views: 4797

Re: ImageMagick quits when input file absent

Whoops! I forgot the version. ImageMagick 6.9.10-3 Q16 x86_64 2018-06-25 https://www.imagemagick.org Webcams upload images asynchronously. I use inotify to detect new images then create a thumbnail of each new image after it arrives. This program has run continually for years. Recently an updated we...
by RandomTroll
2018-09-17T21:37:09-07:00
Forum: Users
Topic: ImageMagick quits when input file absent
Replies: 7
Views: 4797

ImageMagick quits when input file absent

I wrote a program that, among other things, makes a thumbnail of an image. I use the code from /usr/doc/ImageMagick-6/www/source/core.c. It returns: unable to open image `camtwo.jpg': No such file or directory @ error/blob.c/OpenBlob/2589. and quits. I don't understand why the program quits just bec...
by RandomTroll
2017-12-30T14:42:41-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

Re: ImageMagick tries to handle all frames of an animated GIF

... why does IM cache to disk? From what you've said, I can only think that the O/S is denying the memory requests. Have you tried "-debug all"? top reports that it's getting 2-2.4GB of RAM and there's still .6GB free. That should easily be enough to hold a 7MB input file and 149 8MB outp...
by RandomTroll
2017-12-30T13:58:08-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

Re: ImageMagick tries to handle all frames of an animated GIF

fmw42 wrote: 2017-12-30T11:13:06-07:00 You need enough room for the input and the output in RAM and any temp files that may be created. So I suspect you are running out of RAM.
You can suspect that, but it's inconsistent with observation.
by RandomTroll
2017-12-30T13:56:44-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

Re: ImageMagick tries to handle all frames of an animated GIF

python-pillow's explode.py extracts individual frames in a jiffy; gifbuild returns a count quickly. I've solved my problem but not answered my question.
by RandomTroll
2017-12-30T09:24:27-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

Re: ImageMagick tries to handle all frames of an animated GIF

Getting 1 pixel from each image made no difference: IM still made an 8MB temp file for each frame.

I run it with no other apps running. top reports it using 2-2.4 GB RAM, 64-80% - not all. 149 frames, 8 MB each: that's 1.2 GB: why does IM cache to disk?
by RandomTroll
2017-12-29T20:04:30-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

Re: ImageMagick tries to handle all frames of an animated GIF

Hmm... you may be right. I have 2 other GIFs from the 'New Yorker'; the 16-frame GIF takes 1 second to count the frames; the 30-frame GIF takes 3 (resolving to the second). That a 149-frame GIF takes 931 is disproportionate. IM creates multiple 8 MB temporary files; I have about 2.5 GB RAM free: it ...
by RandomTroll
2017-12-29T13:29:34-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

Re: ImageMagick tries to handle all frames of an animated GIF

date;convert DC122717.gif[255] 255.gif ;date returns: Fri Dec 29 10:40:43 MST 2017 convert: subimage specification returns no images `DC122717.gif' @ error/constitute.c/ReadImage/581. Fri Dec 29 10:56:47 MST 2017 16 minutes to figure out the frame requested isn't. date;convert DC122717.gif -set opti...
by RandomTroll
2017-12-29T08:01:33-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

Re: ImageMagick tries to handle all frames of an animated GIF

You-all miss the point: I don't know the properties of the image first. I fetch the 'New Yorker's daily cartoons with a crontab job. For a long time the 'New Yorker's daily cartoons were stills, the processing took less than a second. On the 27th something was monopolizing disk access, slowing down ...
by RandomTroll
2017-12-28T20:52:50-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

Re: ImageMagick tries to handle all frames of an animated GIF

I use Linux, Slackware, package imagemagick-6.9.9_20-i586-1 Version: ImageMagick 6.9.9-20 Q16 i586 2017-10-25 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenCL Delegates (built-in)...
by RandomTroll
2017-12-28T11:49:42-07:00
Forum: Users
Topic: ImageMagick tries to handle all frames of an animated GIF
Replies: 21
Views: 14541

ImageMagick tries to handle all frames of an animated GIF

I tried to append a caption to a cartoon by converting the caption text to a gif, resizing it to the same width as the cartoon, then using convert -append. If I do this to an animated gif, convert works for minutes (until I stop it), creating temporary files (23 when I quit). If I try to open the sa...