Search found 188 matches

by 246246
2019-08-05T06:59:55-07:00
Forum: Users
Topic: Preserve EXIF while conversation from TIF to TIF/TIF to JPG
Replies: 15
Views: 2609

Re: Preserve EXIF while conversation from TIF to TIF/TIF to JPG

Why shows it IrfanView as EXIF? But however, how can I get these information into the final JPG as EXIF? Accroding to the spec of Exif 2.3 http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf 4.6.4 TIFF Rev. 6.0 Attribute InformationTable 4 lists the attribute information used in Exif, including th...
by 246246
2019-07-31T00:52:45-07:00
Forum: Users
Topic: automatically append jpg files
Replies: 2
Views: 899

Re: automatically append jpg files

magick \( 1a.jpg 1b.jpg 1c.jpg +append \) \( 1d.jpg 1e.jpg 1f.jpg +append \) -append 1.jpg will do a job for page 1. Repeat using bash script. It's not difficult. for i in `seq 1 50` do magick \( ${i}a.jpg ${i}.jpg ${i}.jpg +append \) \( ${i}d.jpg ${i}e.jpg ${i}f.jpg +append \) -append ${i}.jpg done
by 246246
2019-07-24T08:57:22-07:00
Forum: Users
Topic: PDF Bookmarks to individual file names
Replies: 3
Views: 1038

Re: PDF Bookmarks to individual file names

You need some programming using some library that can handle PDF bookmark, for example Apache PDFBox in Java. Following page would be your help: https://memorynotfound.com/apache-pdfbox-bookmark-pdf-example/ You can also split it to single page pdf files in it, so then write a script that convert to...
by 246246
2019-07-16T05:02:02-07:00
Forum: Users
Topic: Overwrite images with original extensions
Replies: 3
Views: 1132

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

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

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

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

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

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

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

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

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

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

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

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