Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piping problem #15

Open
GoogleCodeExporter opened this issue Sep 11, 2015 · 4 comments
Open

Piping problem #15

GoogleCodeExporter opened this issue Sep 11, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Invalid
  • Added labels: Type-Defect
  • Removed labels: Performance

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Re-Opened

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant