Search found 194 matches

by 246246
2019-04-30T18:34:02-07:00
Forum: Users
Topic: TIFF:ignore-layers=true
Replies: 11
Views: 5665

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: 5665

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: 6064

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: 5117

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: 5603

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: 4086

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...
by 246246
2018-11-20T05:23:08-07:00
Forum: Users
Topic: Combine images to tiff
Replies: 3
Views: 3782

Re: Combine images to tiff

As far as I know, it was impossible. See https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=32672 or https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=34326 Use tiffcp instead. However it should become possible now after some recent update: https://www.imagemagick.org/discou...
by 246246
2018-07-16T07:38:12-07:00
Forum: Magick.NET
Topic: How to use temporary-path from C# code? (windows)
Replies: 3
Views: 5485

Re: How to use temporary-path from C# code? (windows)

It just call Environment.SetEnv().
https://github.com/dlemstra/Magick.NET/ ... ET.cs#L262
So it should be called at the very first of each process that uses Magick.NET.
by 246246
2018-07-13T07:45:44-07:00
Forum: Users
Topic: "convert" produces larger files than GIMP?
Replies: 5
Views: 3387

Re: "convert" produces larger files than GIMP?

Below is the result. The gimp cropped image is still much smaller. The IM version have "2063x2063+621+603". Does that mean I haven't really cropped the image despite it looks like I have? No, it is cropped. If you want 822x1000+0+0 in identify output, add +repage to your command. I guess the output...
by 246246
2018-07-11T21:46:28-07:00
Forum: Bugs
Topic: Check whether a tif-file is already zip-compressed
Replies: 6
Views: 6140

Re: Check whether a tif-file is already zip-compressed

I’m now from mobile so I cannot check it now, but it seems to be the same bug topic with viewtopic.php?f=1&t=32672, when creating multi-page tiff.
by 246246
2018-07-11T02:28:51-07:00
Forum: Bugs
Topic: Check whether a tif-file is already zip-compressed
Replies: 6
Views: 6140

Re: Check whether a tif-file is already zip-compressed

In bash: compression=$(convert image -format "%[compression]" info:) Then do an if condition test for "$compression" = "zip" Small note: %[compression] returns "Zip", not "zip". Also I found if this command applied to multi-page tiff, it returns the compress method of the first page for all pages! ...
by 246246
2018-07-11T01:00:15-07:00
Forum: Magick.NET
Topic: How to set auto-grayscale off?
Replies: 1
Views: 4298

Re: How to set auto-grayscale off?

In the most recent Magick.NET 7.5.0.1, it seems using (var image = new MagickImage("c:/tmp/logo.tif")) { image.SetAttribute("colorspace:auto-grayscale", "false"); image.Write("c:/tmp/out.tif"); } is working. My first code was using (var image = new MagickImage("c:/tmp/logo.tif")) { image.Settings.Se...
by 246246
2018-07-11T00:24:49-07:00
Forum: Magick.NET
Topic: How to set auto-grayscale off?
Replies: 1
Views: 4298

How to set auto-grayscale off?

According to this, https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=34337, I have not yet find a way to accomplish to avoid RGB image (where all values are r=g=b) to be converted to grayscale. How to do it in Magick.NET? Best Wishes, PS I do not want to use -type TrueColor , because ...
by 246246
2018-07-11T00:01:35-07:00
Forum: Bugs
Topic: -define colorspace:auto-grayscale=false does not work.
Replies: 0
Views: 7129

-define colorspace:auto-grayscale=false does not work.

$ magick -version Version: ImageMagick 7.0.7-28 Q16 x86_64 2018-04-17 http://www.imagemagick.org Copyright: © 1999-2018 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenMP Delegates (built-in): bzlib cairo djvu fftw flif fontconfig ...