Search found 190 matches

by 246246
2019-02-25T18:36:48-07:00
Forum: Magick.NET
Topic: Convert JPEG to TIFF 6.0 spec
Replies: 3
Views: 41732

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

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

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.or...
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: 9562

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

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 ...
by 246246
2018-07-11T21:46:28-07:00
Forum: Bugs
Topic: Check whether a tif-file is already zip-compressed
Replies: 6
Views: 9485

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

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...
by 246246
2018-07-11T01:00:15-07:00
Forum: Magick.NET
Topic: How to set auto-grayscale off?
Replies: 1
Views: 7378

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...
by 246246
2018-07-11T00:24:49-07:00
Forum: Magick.NET
Topic: How to set auto-grayscale off?
Replies: 1
Views: 7378

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 , beca...
by 246246
2018-07-11T00:01:35-07:00
Forum: Bugs
Topic: -define colorspace:auto-grayscale=false does not work.
Replies: 0
Views: 10897

-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 ...
by 246246
2018-04-24T05:09:02-07:00
Forum: Users
Topic: Compress BMP with RLE
Replies: 9
Views: 15455

Re: Compress BMP with RLE

qwermike wrote: 2018-04-23T23:27:30-07:00 I need it just to compare times for different compression algorithms.
Then, I think tiff is proper format. It support RLE, LZW, Zip, Jpeg compression with libtiff.
by 246246
2018-04-24T03:17:31-07:00
Forum: Users
Topic: Invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectoryCheckOrder'
Replies: 12
Views: 26052

Re: Invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectoryCheckOrder'

Is 2046 and 477825 is common for all the files ? If not How do i get to know which bytes needs to remove. See StripOffsets (273) LONG (4) 1<2046> StripByteCounts (279) LONG (4) 1<477825> from command output above. If all your files are created by same software, there is a chance to be able to extra...
by 246246
2018-04-23T17:03:10-07:00
Forum: Users
Topic: Compress BMP with RLE
Replies: 9
Views: 15455

Re: Compress BMP with RLE

I have not found such program yet, or even have not found RLE24 compressed bitmap sample file. Some products may read/write such files, for example https://www.leadtools.com/help/leadtools/v19/dh/to/l-topics-fileformatsbmpformats.html, but i'm not tried it yet. I guess most software ignore RLE compr...
by 246246
2018-04-23T07:34:43-07:00
Forum: Users
Topic: Invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectoryCheckOrder'
Replies: 12
Views: 26052

Re: Invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectoryCheckOrder'

According to tiffdump, $ tiffdump NotWorking.tiff NotWorking.tiff: Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF> Directory 0: offset 8 (0x8) next 0 (0) SubFileType (254) LONG (4) 1<0> ImageWidth (256) LONG (4) 1<1700> ImageLength (257) LONG (4) 1<2200> BitsPerSample (258) SHORT (3) 1<8> ...