Search found 10 matches

by barabanus
2020-03-20T10:43:30-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Re: Process images to stdout immediately after they are read from stdin

Ok and thank you for your help. I hope this thread will help someone who tries to do similar thing.
by barabanus
2020-03-20T04:01:18-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Re: Process images to stdout immediately after they are read from stdin

Your use case cannot be supported. Many image types permit multiple frames per image file (e.g. MIFF). For these coders, stdin is read indefinitely until an EOF is detected or an exception is thrown. I don't understand why multiple frames can't be processed immediately frame by frame if their proce...
by barabanus
2020-03-18T10:20:55-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Re: Process images to stdout immediately after they are read from stdin

Try `convert ppm:- -resize 50% ppm:-`. Does that make a difference? No, there's no difference. I expected from `mogrify` to process images immediately, but `mogrify` instead accumulates input images the same way `convert` does. Is it a bug of `mogrify`? Or should I ask for this functionality from `...
by barabanus
2020-03-17T05:20:20-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Re: Process images to stdout immediately after they are read from stdin

Thank you for your comments. Unfortunately, I haven't found any supported image format which provides immediate image processing from STDIN to STDOUT without waiting for EOF from STDIN. PNG is not an option because if you feed `mogrify` a sequence of PNGs it will discard all but the first. PPM is no...
by barabanus
2020-03-16T14:12:59-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Re: Process images to stdout immediately after they are read from stdin

Let me report: using PPM format with mogrify evokes `no space left` error in infinite loop: $ { while :; do convert logo: ppm:-; done } | mogrify -resize 50% ppm:- >/dev/null mogrify: unable to write blob '/tmp/magick-8762pDAKAfwG9XPc': No space left on device @ error/blob.c/ImageToFile/2339. But us...
by barabanus
2020-03-16T13:32:05-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Re: Process images to stdout immediately after they are read from stdin

snibgo wrote:
2020-03-16T13:17:36-07:00
The "convert" writes (to the pipe) in ppm format. The "magick mogrify" tries to read png format from the pipe.
Is there a way to make it read PPM? Because when I write a sequence of PNGs it discards all PNGs except the first one.
by barabanus
2020-03-16T12:50:41-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Re: Process images to stdout immediately after they are read from stdin

"mogrify" has a different syntax to "convert". What was your exact command? Let me simplify the command to demonstrate there's no actual difference which I guess is a bug. At first, let me start with this command: { for i in $(seq 10000); do convert logo: ppm:-; done } | convert ppm:- -resize 50% p...
by barabanus
2020-03-16T10:58:33-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Re: Process images to stdout immediately after they are read from stdin

snibgo wrote:
2020-03-16T10:44:25-07:00
Yes. That's what "magick mogrify" does. Or simply "mogrify" if you use v6.
Well, I switched `convert` to `mogrify`, but there were no any difference.
by barabanus
2020-03-16T10:23:21-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 3310

Process images to stdout immediately after they are read from stdin

Hello! I've got a movie production pipeline which has a screenshots generator that produces a sequence of PPM to STDOUT. I pipe it to `convert` for postprocessing and then to `ffmpeg` to create the final movie without creation of intermediate files. The command line looks like this: ./generate-scree...
by barabanus
2018-11-21T08:05:37-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 50938

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux

Let me describe my experience. As a computer vision engineer, I had to detect symbols on blueprints scanned as A3 600 dpi PDF files. That's 9k by 7k pixels! Linux and MacOS. At first I used `convert` utility and it took ~40 seconds to convert a single page. We used this solution until we had to conv...