Search found 194 matches

by 246246
2020-01-16T18:12:08-07:00
Forum: Users
Topic: I can't create a BMP4 even using bmp:format=bmp4
Replies: 4
Views: 183

Re: I can't create a BMP4 even using bmp:format=bmp4

It might have been true when that document was written, but as far as I see, current default is bmp5, and there is no way to write bmp4. $ magick logo: logo.bmp $ file logo.bmp logo.bmp: PC bitmap, Windows 98/2000 and newer format, 640 x 480 x 8 If the file were bmp4, file command return 'Windows 95...
by 246246
2020-01-16T00:39:56-07:00
Forum: Users
Topic: Sorry, can not handle images with 32-bit samples
Replies: 13
Views: 4887

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

With your file, I got the same kind of problem when using LibTIff.NET (in SetDirectorey() method.) So I I checked, last page of your tiff has the following tag: SMinSampleValue (340) FLOAT (11) 3<0.00610352 0.00720215 0.00146484> SMaxSampleValue (341) FLOAT (11) 3<15.125 15.125 15.3125> According to...
by 246246
2019-12-27T01:11:08-07:00
Forum: Developers
Topic: Issue in svg to png
Replies: 13
Views: 1891

Re: Issue in svg to png

I can download the svg from the original post, and just convert it to png with recent ImageMagick that uses default setting: <delegate decode="svg" command=""rsvg-convert" -o "%o" "%i""/> from command line magick. No problem happened. Version: ImageMagick 7.0.9-11 Q16 x...
by 246246
2019-12-23T21:18:31-07:00
Forum: Users
Topic: How can I merge this 8 small images into 1 big image?
Replies: 4
Views: 1129

Re: How can I merge this 8 small images into 1 big image?

I think what you need is -append and +append , generally. magick \( out_00.jpg out_01.jpg out_02.jpg out_03.jpg +append \) \( out_04.jpg out_05.jpg out_06.jpg out_07.jpg +append \) -append out.jpg PS When the intermediate image is png, snibgo's answer works, however if the intermediate image is jpg,...
by 246246
2019-09-05T19:25:46-07:00
Forum: Users
Topic: convert grayscale tif to grayscale png not working
Replies: 5
Views: 5212

Re: convert grayscale tif to grayscale png not working

Or your 32-bit float tiff is tiled format, that is patched very recently:
https://imagemagick.org/discourse-serve ... ff#p166078
by 246246
2019-08-23T04:17:30-07:00
Forum: Bugs
Topic: Tiff image without TIFFTAG_PHOTOMETRIC won't load
Replies: 1
Views: 3192

Re: Tiff image without TIFFTAG_PHOTOMETRIC won't load

TIFFTAG_PHOTOMETRIC is required field. There is no default. See https://www.awaresystems.be/imaging/tif ... ation.html
by 246246
2019-08-05T06:59:55-07:00
Forum: Users
Topic: Preserve EXIF while conversation from TIF to TIF/TIF to JPG
Replies: 17
Views: 12106

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

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

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

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

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

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

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

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

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();