Invallid Parameter - MB

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Invallid Parameter - MB

Post by elisegev » 2009-06-16T12:42:22-07:00

Hi,

I have two TIF files that come from Photoshop. I get the following error with ImageMagick 6.5.3 when converting to PNG:

Invalid Parameter - MB

What is wrong with the file? Is there a way to send you these files?

User avatar
magick
Site Admin
Posts: 11076
Joined: 2003-05-31T11:32:55-07:00

Re: Invallid Parameter - MB

Post by magick » 2009-06-16T13:22:12-07:00

We have never seen that exception message. Post a URL to your images and the command you used. We will download them and hopefully reproduce the problem.

User avatar
magick
Site Admin
Posts: 11076
Joined: 2003-05-31T11:32:55-07:00

Re: Invallid Parameter - MB

Post by magick » 2009-06-16T14:05:32-07:00

Works for us (using ImageMagick 6.5.3-8):
  • -> convert 25_5\ MB\ PS\ no\ layers.tif 25_5\ MB\ PS\ no\ layers.png
    convert: 25_5 MB PS no layers.tif: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
    convert: 25_5 MB PS no layers.tif: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory' @ tiff.c/TIFFWarnings/525.
    convert: 25_5 MB PS no layers.tif: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.

    -> convert 26_5\ MB\ PS\ with\ layers.tiff 26_5\ MB\ PS\ with\ layers.png
    convert: 26_5 MB PS with layers.tiff: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
    convert: 26_5 MB PS with layers.tiff: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory' @ tiff.c/TIFFWarnings/525.
    convert: 26_5 MB PS with layers.tiff: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.

    -> identify 25
    25_5 MB PS no layers.png 25_5 MB PS no layers.tif

    -> identify 25_5\ MB\ PS\ no\ layers.png 26
    26_5 MB PS with layers.png 26_5 MB PS with layers.tiff

    -> identify 25_5\ MB\ PS\ no\ layers.png 26_5\ MB\ PS\ with\ layers.png
    25_5 MB PS no layers.png PNG 1842x2434 1842x2434+0+0 8-bit DirectClass 10.49mb
    26_5 MB PS with layers.png[1] PNG 1842x2434 1842x2434+0+0 8-bit DirectClass 10.41mb

elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Re: Invallid Parameter - MB

Post by elisegev » 2009-06-16T14:09:58-07:00

magick wrote:Works for us (using ImageMagick 6.5.3-8):
  • -> convert 25_5\ MB\ PS\ no\ layers.tif 25_5\ MB\ PS\ no\ layers.png
    convert: 25_5 MB PS no layers.tif: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
    convert: 25_5 MB PS no layers.tif: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory' @ tiff.c/TIFFWarnings/525.
    convert: 25_5 MB PS no layers.tif: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.

    -> convert 26_5\ MB\ PS\ with\ layers.tiff 26_5\ MB\ PS\ with\ layers.png
    convert: 26_5 MB PS with layers.tiff: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
    convert: 26_5 MB PS with layers.tiff: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory' @ tiff.c/TIFFWarnings/525.
    convert: 26_5 MB PS with layers.tiff: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.

    -> identify 25
    25_5 MB PS no layers.png 25_5 MB PS no layers.tif

    -> identify 25_5\ MB\ PS\ no\ layers.png 26
    26_5 MB PS with layers.png 26_5 MB PS with layers.tiff

    -> identify 25_5\ MB\ PS\ no\ layers.png 26_5\ MB\ PS\ with\ layers.png
    25_5 MB PS no layers.png PNG 1842x2434 1842x2434+0+0 8-bit DirectClass 10.49mb
    26_5 MB PS with layers.png[1] PNG 1842x2434 1842x2434+0+0 8-bit DirectClass 10.41mb
I have figured out my mistake. Yes, it is working. Although it does have warnings.

Thanks for your help.

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Invallid Parameter - MB

Post by anthony » 2009-06-16T20:20:17-07:00

You can get it to be quiet about such warnings using the -quiet operational flag

http://www.imagemagick.org/Usage/basics/#quiet
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

Post Reply