Search found 185 matches

by 246246
2019-07-16T05:02:02-07:00
Forum: Users
Topic: Overwrite images with original extensions
Replies: 3
Views: 83

Re: Overwrite images with original extensions

%f is whole filename. Just replace %[basename] to %f and remove the last ".jpg" at your command.
by 246246
2019-07-15T21:08:41-07:00
Forum: Users
Topic: Combine overlap of two images
Replies: 2
Views: 69

Re: Combine overlap of two images

If the gray area is your 2nd image is transparent,

Code: Select all

magick 1st.png 2nd.png -compose copy_opacity -composite result.png
will do the job.
by 246246
2019-07-04T23:02:13-07:00
Forum: Bugs
Topic: cannot create png with color-type=4 directly.
Replies: 4
Views: 307

Re: cannot create png with color-type=4 directly.

In my opinion, "-type" should be used only to specify the format of the written file, not to change pixel values. If we want to make pixels gray, we should use "-colorspace Gray" or another operation that changes pixels. Good point. My first example line that is writing to tiff, works as expected w...
by 246246
2019-07-04T19:43:41-07:00
Forum: Bugs
Topic: cannot create png with color-type=4 directly.
Replies: 4
Views: 307

Re: cannot create png with color-type=4 directly.

Thank you snibgo. In my enviroment (see above), -colorspace Gray results the same. Without -define color-type, color_type becomes 3. With -define color-type=4, it outputs warning and color-type becomes 6. I will try with other version later when I have time. To clarify: $ rm x.png $ magick -version ...
by 246246
2019-07-04T19:11:44-07:00
Forum: Bugs
Topic: cannot create png with color-type=4 directly.
Replies: 4
Views: 307

cannot create png with color-type=4 directly.

I tried with 7.0.8-51 Q16 x64 HDRI on Windows command line, and 7.0.8-50 Q16 x86_64 HDRI on msys2. (Both are on Windows 7 64 bit.) For example, $ magick logo: \( +clone -negate -colorspace HSV -separate -delete 0,1 \) -compose copy_opacity -composite -type GrayScaleAlpha x.tif create Gray+Alpha tiff...
by 246246
2019-06-30T19:10:09-07:00
Forum: Magick.NET
Topic: Swap color channels
Replies: 3
Views: 1237

Re: Swap color channels

Get IMagickCollection by Separate(), reorder to the state whatever you want, then Combine();

Code: Select all

var x = image.Separate().ToList();
var y = new MagickImageCollection();
y.Add(x[2]);
y.Add(x[1]);
y.Add(x[0]);
var swapped = y.Combine();
by 246246
2019-06-21T04:55:36-07:00
Forum: Bugs
Topic: Picture flipped(mirror image) after conversion to Color TIFF - 25035150
Replies: 3
Views: 851

Re: Picture flipped(mirror image) after conversion to Color TIFF - 25035150

Both your input and output files has Orientation: RightTop (= 6) value. $ magick identify -verbose IMG_0233.jpg | grep -i orient Orientation: RightTop exif:Orientation: 6 $ magick identify -verbose 'Converted - 2019-06-21T115901.857.tiff' | grep -i orient Orientation: RightTop Most viewer support or...
by 246246
2019-06-12T23:46:53-07:00
Forum: Bugs
Topic: Problem with Group 4 compression on B&W TIFF
Replies: 10
Views: 1476

Re: Problem with Group 4 compression on B&W TIFF

I'm not sure it is the case but Group4 compression may produce larger size file than the original at the worst case. From https://en.wikipedia.org/wiki/Group_4_compression A worst-case image would be an alternating pattern of single-pixel black and white dots offset by one pixel on even/odd lines. G...
by 246246
2019-05-19T06:30:43-07:00
Forum: Users
Topic: Sorry, can not handle images with 32-bit samples
Replies: 5
Views: 2133

Re: Sorry, can not handle images with 32-bit samples

It looks ImageMagick failed to read 16 bit float and 32 bit float tiff file when it is encoded in tile format.
by 246246
2019-05-09T08:16:09-07:00
Forum: Users
Topic: Create a pdf with layers from several tiffs files
Replies: 7
Views: 1926

Re: Create a pdf with layers from several tiffs files

What is the generated version of the pdf in imagemagick 7? My previous answer for version is wrong. It seems it depends on input: $ magick wizard: tiff:- | magick - PDF:- | head -1 %PDF-1.7 $ magick wizard: png:- | magick - PDF:- | head -1 %PDF-1.3 I do not understand how the version is selected. N...
by 246246
2019-05-05T02:49:42-07:00
Forum: Users
Topic: Create a pdf with layers from several tiffs files
Replies: 7
Views: 1926

Re: Create a pdf with layers from several tiffs files

PDF can include layer, Optional Content Groups, since version 1.5. The pdf imagemagick generates have a header of 1.3, so it's easy to guess imagemagick has no feature to create it. Many PDF product claims that can do, but I only found few open source that can create PDF layer. If you are willing to...
by 246246
2019-05-04T04:49:54-07:00
Forum: Users
Topic: how to crop jpg and maintain the dimension
Replies: 12
Views: 6353

Re: how to crop jpg and maintain the dimension

@snibgo v 6.9.9-40 is the same with you. % convert lena.png -background blue -crop 512x512+50+50\! +write info: -flatten out.png lena.png PNG 462x462 512x512+0+0 8-bit sRGB 0.010u 0:00.000 Here is the result from v 7.0.8-42 % magick lena.png -background blue -crop 512x512+50+50\! +write info: -flatt...
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: 2576

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

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

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 ...