Acecool / 2dimagefilter

Automatically exported from code.google.com/p/2dimagefilter
0 stars 0 forks source link

Piping problem #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
ImageResizer /load imagein.png /resize auto "xBR 3x 
<NoBlend>(thresholds=0,vbounds=wrap,hbounds=wrap,radius=1.00,centered=0)" 
/stdout | convert - imageout.png

What is the expected output? What do you see instead?

It should produce xBR filtered PNG Image instead of error message such as:

convert.exe: no decode delegate for this image format `C:/Users/MICROS~1/AppData
/Local/Temp/magick-6824oA_V627fhP8n' @ error/constitute.c/ReadImage/550.
convert.exe: no images defined `D:\Documents\MagickView\Imageout.png' @ e
rror/convert.c/ConvertImageCommand/3106.

Please use labels and text to provide additional information.

I use ImageMagick with pngnq-s9 application, but this error messages didn't 
appear.
I don't know if the problem is from ImageMagick or from stdout data produced by 
ImageResizer

Original issue reported on code.google.com by ryanb...@gmail.com on 24 May 2013 at 10:53

GoogleCodeExporter commented 8 years ago
Convert error message seems not related to ImageResizer. Possibly you'll need 
to specify the that the data from stdin is in png file format via command line 
parameters in convert.exe.

Original comment by Hawk...@gmx.de on 2 Jun 2013 at 6:58

GoogleCodeExporter commented 8 years ago
I change the command with this :

ImageResizer /load imagein.png /resize auto "xBR 3x 
<NoBlend>(thresholds=0,vbounds=wrap,hbounds=wrap,radius=1.00,centered=0)" 
/stdout | convert png:- imageout.png

But another error message appear:

magick.exe: Improper image header `-' @ error/png.c/ReadPNGImage/3999.
magick.exe: no images defined `output.png' @ error/convert.c/ConvertImageCommand
/3106.

As I said before, I tried ImageMagick Convert with Pngnq-s9, but none of both 
error that I mentioned appear. Could you mention working example to prove that 
there is no problem with ImageResizer.

Thanks

Original comment by ryanb...@gmail.com on 3 Jun 2013 at 5:57

GoogleCodeExporter commented 8 years ago
I think I know where the Problem could be. ImageResizer outputs status messages 
to stdout before the image data is sent to it and ImageMagick can not 
distinguish both from each other. I'll figure out a way to supress any status 
messages when an stdout parameter is present.

Original comment by Hawk...@gmx.de on 1 Jul 2013 at 2:07

GoogleCodeExporter commented 8 years ago
I have a similar problem. Converting files works fine except when using stdin

# convert test.png test.gif
# cat test.png | convert png:- test.gif
convert: improper image header `-' @ error/png.c/ReadPNGImage/4000.
convert: no images defined `test.gif' @ 
error/convert.c/ConvertImageCommand/3106.

Original comment by dtle...@me.com on 5 Jan 2014 at 3:35