Search found 200 matches

by 246246
2018-03-22T19:55:12-07:00
Forum: Users
Topic: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?
Replies: 11
Views: 8109

Re: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?

Thank you for your clear explaiation, snibgo! I neverimagined such simple calculation exists --- well, 255 * 257 = 65535.
by 246246
2018-03-22T17:30:20-07:00
Forum: Users
Topic: IM can't handle %% in paths
Replies: 15
Views: 12075

Re: IM can't handle %% in paths

snibgo wrote:
2018-03-22T16:15:20-07:00
The difficulty is that IM treats some characters in output filenames as special. For example "output_%[filename:mysize].tif" will substitute %[...] with something else.
Thank you for reminding me. I had thought the result in my simple testcase is an obvious bug. :)
by 246246
2018-03-22T17:15:28-07:00
Forum: Users
Topic: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?
Replies: 11
Views: 8109

Re: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?

@246246: Did you follow the trail? property.c "bit-depth" calls attribute.c GetImageDepth() which reads the entire image to find the number of bits required. I'm now trying to :) Your command for logo2.tif finds the best two colours that fit the image. You use Q16, and those colours are likely to n...
by 246246
2018-03-22T17:02:55-07:00
Forum: Users
Topic: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?
Replies: 11
Views: 8109

Re: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?

fmw42 wrote:
2018-03-22T16:19:20-07:00
Is it not the other way around, as

16/1-bit
Sorry I don't understand what you mean:

$ magick identify -verbose logo1.tif | grep Depth
Depth: 1/8-bit
$ magick identify -verbose logo2.tif | grep Depth
Depth: 1/16-bit
by 246246
2018-03-22T15:57:20-07:00
Forum: Users
Topic: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?
Replies: 11
Views: 8109

Re: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?

I read it about this forum some years ago, but I cannot find the post. (I'll add it later if I could find it.) I'm sure that property is implemented. https://github.com/ImageMagick/ImageMagick/search?l=C&q=bit-depth&type=&utf8=%E2%9C%93 It seems same value are shown in the output of identify -verbos...
by 246246
2018-03-22T07:04:36-07:00
Forum: Users
Topic: IM can't handle %% in paths
Replies: 15
Views: 12075

Re: IM can't handle %% in paths

akes wrote:
2018-03-22T06:29:02-07:00
And since some of the images are 300MB+ I do not want to copy them before running the IM command.
As you are in linux, you can use mv instead of cp if the partition is same.
Probably better way is to use symbolic link.
by 246246
2018-03-22T03:51:49-07:00
Forum: Magick.NET
Topic: EXIF data lost on save
Replies: 6
Views: 14111

Re: EXIF data lost on save

Have you tried exiv2, that are written in C++.
I once tried to use it via c++/CLI, reading from the original and write to newly saved file.
metacopy.cpp would be your help.
by 246246
2018-03-22T02:40:11-07:00
Forum: Users
Topic: IM can't handle %% in paths
Replies: 15
Views: 12075

Re: IM can't handle %% in paths

Even without [0], this command failed also: $ mkdir tmp%% $ magick logo: 'tmp%%/logo.tif' magick.exe: unable to open image 'tmp%/logo.tif': No such file or directory @ error/blob.c/OpenBlob/3109. With -debug TRACE it disappears around here: ... 2018-03-22T18:51:45+09:00 0:00.348 0.125u 7.0.6 Trace m...
by 246246
2018-03-21T23:57:12-07:00
Forum: Users
Topic: Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?
Replies: 11
Views: 8109

Why %[bit-depth] is sometimes 8 and sometimes 16 for indexed tiff?

First I create a 2 color indexed tiff via png. $ magick logo: -colors 2 -define png:include-chunk=none -define png:bit-depth=1 -define png:color-type=3 logo1.png $ magick logo1.png -compress none logo1.tif $ identify -verbose logo1.tif | grep -A 2 -B 5 -i colormap: Colors: 2 Histogram: 42971: ( 83, ...
by 246246
2018-03-20T05:24:51-07:00
Forum: Bugs
Topic: RGB555/RGB565 etc are not working
Replies: 2
Views: 7464

Re: RGB555/RGB565 etc are not working

I think it is solved.
It looks -type truecolor is required in this case.

Code: Select all

magick logo: -type truecolor -define bmp:subtype=RGB565 logo565.bmp
by 246246
2018-03-20T05:04:34-07:00
Forum: Bugs
Topic: RGB555/RGB565 etc are not working
Replies: 2
Views: 7464

RGB555/RGB565 etc are not working

According to the document https://www.imagemagick.org/script/command-line-options.php#define or from https://github.com/ImageMagick/ImageMagick/issues/344 , writing in format RGB555/RGB565 etc are now supported. But it does not seem to be working: P:>magick -version Version: ImageMagick 7.0.7-27 Q16...
by 246246
2017-12-07T19:12:23-07:00
Forum: Magick.NET
Topic: How to change tiff compression method in 7.2.0?
Replies: 4
Views: 10963

Re: How to change tiff compression method in 7.2.0?

Thank you.
If I understand correctly, this shoule be

Code: Select all

image.Settings.Compression = Compression.NoCompression;
since version 7.2.0.
by 246246
2017-12-03T22:04:04-07:00
Forum: Magick.NET
Topic: How to change tiff compression method in 7.2.0?
Replies: 4
Views: 10963

Re: How to change tiff compression method in 7.2.0?

I just read https://www.imagemagick.org/discourse-server/viewtopic.php?f=27&t=33122#p151883 . So it shoud be: MagickReadSettings settings = new MagickReadSettings(); settings.SetDefine(MagickFormat.Tif, "ignore-layers", true); settings.Compression = Compression.NoCompression; using (var image = new ...
by 246246
2017-12-03T21:29:07-07:00
Forum: Magick.NET
Topic: How to change tiff compression method in 7.2.0?
Replies: 4
Views: 10963

How to change tiff compression method in 7.2.0?

There was a CompressionMethod property in MagickImage 7.1.0. But in 7.2.0, it is not, instead it looks Compression property exists. However it is read only. Then, how to copy single page tiff file with changing compression method? I had do it before like the following: MagickReadSettings settings = ...
by 246246
2017-09-26T08:20:06-07:00
Forum: Bugs
Topic: identify report wrong format for tiff page.
Replies: 3
Views: 5790

Re: identify report wrong format for tiff page.

Thank you for explanation. I had never used -identify option for convert, though I found another way to show 'Bilevel' output for both: $ identify -format "%[colorspace] %[type]\n" logo_mix.tif Gray Bilevel Gray Grayscale Gray Grayscale sRGB Palette sRGB Palette $ identify -format "%[colorspace] %[t...