Search found 188 matches

by 246246
2019-05-01T08:03:03-07:00
Forum: Bugs
Topic: tiff:has-layers no longer works when [0] is added.
Replies: 0
Views: 4224

tiff:has-layers no longer works when [0] is added.

I think it happened every layered tiff, but the file has taken from https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=35942 $ magick identify -format '%[tiff:has-layers]\n' 10212_transparent_with_layers.tif[0] identify: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNorm...
by 246246
2019-05-01T06:58:00-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 3359

Re: TIFF:ignore-layers=true

246246 wrote:
2019-04-30T21:45:58-07:00
In v6, even without -define tiff:ignore-layers=true, it cannot extract the layer[0] only.
It turned out this is already solved in recent ImageMagick v6. I tried it with 6.9.10-42 comes with homebrew and found it behaves the same as the current v7.
by 246246
2019-05-01T06:48:09-07:00
Forum: Bugs
Topic: When specified relative or absolute path, identify or convert report error.
Replies: 1
Views: 1957

Re: When specified relative or absolute path, identify or convert report error.

OK, I checked it with 6.9.10-42 comes from Homebrew: /usr/local/opt/imagemagick@6/bin/identify -version Version: ImageMagick 6.9.10-42 Q16 x86_64 2019-04-26 https://imagemagick.org Copyright: © 1999-2019 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC ...
by 246246
2019-05-01T02:04:54-07:00
Forum: Bugs
Topic: When specified relative or absolute path, identify or convert report error.
Replies: 1
Views: 1957

When specified relative or absolute path, identify or convert report error.

I recently do not use version 6, but I've got really confused with this behavior. I got v6.9.9-40 from macport for my macOS Mojave 10.14.4. $ identify -version Version: ImageMagick 6.9.9-40 Q16 x86_64 2018-11-24 http://www.imagemagick.org Copyright: © 1999-2018 ImageMagick Studio LLC License: http:/...
by 246246
2019-04-30T21:45:58-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 3359

Re: TIFF:ignore-layers=true

After all, I think following seems to be a bug: In v6, even without -define tiff:ignore-layers=true, it cannot extract the layer[0] only. In v7, $ magick convert -quiet -define tiff:ignore-layers=true 10212_transparent_with_layers.tif[0] x7.tif $ magick identify x7.tif x7.tif TIFF 535x1336 535x1336+...
by 246246
2019-04-30T21:39:28-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 3359

Re: TIFF:ignore-layers=true

Sorry for confusing. Somewhere in analyzing, the file 10212_transparent_with_layers.tif had changed. It no longer output errors (except warinings) from ImageMagick. So, if the command above does not work in v6, please just convert it first to remove something that caused ImageMagick error. % convert...
by 246246
2019-04-30T21:33:35-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 3359

Re: TIFF:ignore-layers=true

In v6, I can remove them by the following command: % convert -quiet 10212_transparent_with_layers.tif +profile '37724,8bim' x1.tif It seems Tag 34377 has to be referenced as 8bim. Edit: % convert -quiet 10212_transparent_with_layers.tif +profile '8bim' x2.tif is enough for remove photoshop related t...
by 246246
2019-04-30T21:05:03-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 3359

Re: TIFF:ignore-layers=true

Also I believe property tiff:has-layers had worked properly: magick identify -format '%[tiff:has-layers]\n' out0-v6.tif[0] identify: unknown image property "%[tiff:has-layers]" @ warning/property.c/InterpretImageProperties/3990. This once returned "true" without warning. See https://www.imagemagick....
by 246246
2019-04-30T19:24:22-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 3359

Re: TIFF:ignore-layers=true

So I think it is a bug in +profile and in -strip. Oh, I see. Here I have to add -define tiff:ignore-layers=true $ convert -quiet -define tiff:ignore-layers=true 10212_transparent_with_layers.tif +profile "34377,37724" out.tif $ tiffdump out.tif out.tif: Magic: 0x4949 <little-endian> Version: 0x2a <...
by 246246
2019-04-30T18:34:02-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 3359

Re: TIFF:ignore-layers=true

Here is tiffdump output: $ tiffdump 10212_transparent_with_layers.tif 10212_transparent_with_layers.tif: Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF> Directory 0: offset 8 (0x8) next 0 (0) SubFileType (254) LONG (4) 1<0> ImageWidth (256) SHORT (3) 1<535> ImageLength (257) SHORT (3) 1<1...
by 246246
2019-04-30T18:15:49-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 3359

Re: TIFF:ignore-layers=true

Photoshop layers is just a tag 37724 for tiff. (see Photoshop-specific TIFF Tags part at http://paulbourke.net/dataformats/psdpsb/psdpsb.html#50577409_72092 for example.) When -define tiff:ignore-layers=true is used with identify, it is regarded as just a tag, otherwise (i.e. without -define tiff:ig...
by 246246
2019-04-28T06:41:28-07:00
Forum: Developers
Topic: density unit output
Replies: 7
Views: 3150

Re: density unit output

You said original image is bitmap. So as for a spec, its original unit is pixels per meter.
https://en.wikipedia.org/wiki/BMP_file_format
by 246246
2019-03-27T06:59:15-07:00
Forum: Bugs
Topic: Failed to convert PNG file with error " IDAT: invalid distance too far back"
Replies: 4
Views: 2920

Re: Failed to convert PNG file with error " IDAT: invalid distance too far back"

pngfix (comes with libpng) will fix your png. $ pngcheck -v sample.png File: sample.png (2739 bytes) chunk IHDR at offset 0x0000c, length 13 409 x 242 image, 8-bit palette, non-interlaced chunk PLTE at offset 0x00025, length 768: 256 palette entries chunk IDAT at offset 0x00331, length 1902 zlib: de...
by 246246
2019-02-25T18:36:48-07:00
Forum: Magick.NET
Topic: Convert JPEG to TIFF 6.0 spec
Replies: 3
Views: 2893

Re: Convert JPEG to TIFF 6.0 spec

ImageMagick does not have compress option for old jpeg, neither in Magick.NET.
Both libtiff and LibTiff.NET does not support OJPG for writing.
See https://manpages.debian.org/stretch/lib ... .1.en.html or https://github.com/BitMiracle/libtiff.net/issues/21
by 246246
2019-02-25T17:44:13-07:00
Forum: Users
Topic: How to Extract Layers from a TIF File and save to new file with transparency
Replies: 7
Views: 2955

Re: How to Extract Layers from a TIF File and save to new file with transparency

Snibgo, your example is not what I want to do. That example just gets me a new image with 2 layers. Here in 7.0.8-14, snibgo's command magick testshoe.tiff[2] +repage out.tiff produce 1 layer tiff, as far as verified in magick identify. There might be something in properties that is specific to Ado...