Search found 12557 matches

by snibgo
2020-01-18T07:37:40-07:00
Forum: Users
Topic: Copy area from infile to outfile
Replies: 6
Views: 174

Re: Copy area from infile to outfile

ImageMagick works with lists of images. In this case, it reads infile.png so there is one image in the list. Then it makes a clone so now there are two. And so on. "-delete 0" deletes the first image in the list. "-delete" doesn't delete any files.
by snibgo
2020-01-18T04:51:59-07:00
Forum: Users
Topic: [CLI] evaluate-sequence + fx without clamping?
Replies: 4
Views: 103

Re: [CLI] evaluate-sequence + fx without clamping?

"-fx" is very slow. I suggest you use "-compose Mathematics" instead. This can do the subtraction and addition in one operation:

Code: Select all

magick image1.png image2.png -define compose:clamp=off -compose mathematics -define compose:args=0,1,-1,0.5 -composite result.png
by snibgo
2020-01-18T04:45:12-07:00
Forum: Bugs
Topic: Convert doesn't work
Replies: 5
Views: 144

Re: Convert doesn't work

srgmskt wrote:Policy: Coder
rights: None
pattern: PDF
So, can you see what the problem is?

A line in your policy.xml gives you no rights to PDF files. If you remove that line, you will have access.
by snibgo
2020-01-18T00:14:30-07:00
Forum: Users
Topic: imagemagick composite multiple images
Replies: 2
Views: 69

Re: imagemagick composite multiple images

What is your platform (Windows, bash, etc?). How large are your inputs? If the inputs are small enough to fit into memory at the same time, you could use "-layers composite", like this: magick *.tif NULL: *.png -layers Composite out_%d.png Otherwise, you could write a shell loop, so the magick comma...
by snibgo
2020-01-17T05:44:12-07:00
Forum: Users
Topic: JAB XYZ conversion
Replies: 7
Views: 184

Re: JAB XYZ conversion

@tag: When the colorspace are incorporated into ImageMagick, you will be able to do things like this: magick xc:rgb(1%,49%,51%) -set colorspace Jzazbz -colorspace sRGB txt: # ImageMagick pixel enumeration: 1,1,4294967295,srgb 0,0: (1.49887e+09,1.45987e+09,3.50994e+09) #595704555703EA1AD1355BB8 srgb(...
by snibgo
2020-01-17T05:29:47-07:00
Forum: Users
Topic: JAB XYZ conversion
Replies: 7
Views: 184

Re: JAB XYZ conversion

@magick: You have my permission to refactor my code under the ImageMagick license. (Or to do anything else with it that you want.) There are three diff files, from v7.0.8-64: http://snibgo.com/imforums/jz_colorspace_c.diff http://snibgo.com/imforums/jz_colorspace_h.diff http://snibgo.com/imforums/jz...
by snibgo
2020-01-17T00:22:10-07:00
Forum: Users
Topic: JAB XYZ conversion
Replies: 7
Views: 184

Re: JAB XYZ conversion

QuantumRange is defined in one of the IM header files. The value depends on the Q-number of the IM installation: 2^N-1. For Q8 this is 255, for Q16 it is 65535, for Q32 it is 4294967295. I'm not sure that my implementation of Jzazbz and JzCzhz is correct, but I can't find any other implementation to...
by snibgo
2020-01-16T16:39:03-07:00
Forum: Users
Topic: JAB XYZ conversion
Replies: 7
Views: 184

Re: JAB XYZ conversion

Perhaps you are referring to my Jzazbz colorspace page. IM does not (yet) have the Jzazbz and JzCzhz colorspaces. My implementation calculates all three channels in a range of zero to QuantumRange, with neutral values of az and bz as 50% of quantum. I point out in the Numerical Values section that c...
by snibgo
2020-01-16T04:37:38-07:00
Forum: Bugs
Topic: Convert doesn't work
Replies: 5
Views: 144

Re: Convert doesn't work

What version of IM do you use? For v6, use "convert". For v7, use "magick".

What does "convert -list policy" say?
by snibgo
2020-01-16T03:02:55-07:00
Forum: Users
Topic: Fading image edges
Replies: 9
Views: 3840

Re: Fading image edges

For v7, I suggest "magick" instead of "convert".

The second "compose" should be "composite":

Code: Select all

magick toes.png bgw_edge.png -alpha off -compose CopyOpacity -composite toes_bgw.png
by snibgo
2020-01-15T06:39:07-07:00
Forum: Users
Topic: convesion of psd file with ColorSpace cmyk to jpg always have always black background
Replies: 4
Views: 129

Re: convesion of psd file with ColorSpace cmyk to jpg always have always black background

vinoddogra10 wrote:ColorSpace = CMYK

MagickColor(255, 255, 255);
CMYK "255" means full ink, so this is black.
by snibgo
2020-01-15T05:49:24-07:00
Forum: Users
Topic: Convert PDF to JPG: some elements are lost
Replies: 3
Views: 137

Re: Convert PDF to JPG: some elements are lost

When I open your PDF in Adobe Acrobt Reader, I see three small rectangles. When I right-click on any of them, the menu has an option "Open Pop-Up Note".

I can open and close them, move them around, etc.
by snibgo
2020-01-14T10:06:03-07:00
Forum: Users
Topic: Sorry, can not handle images with 32-bit samples
Replies: 13
Views: 4917

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

As a workaround, tiffcp can read the file, and make a new tiff:

Code: Select all

tiffcp test.tiff x.tiff
Then IM can read x.tiff with no problem.
by snibgo
2020-01-14T09:12:06-07:00
Forum: Users
Topic: Sorry, can not handle images with 32-bit samples
Replies: 13
Views: 4917

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

For v7, I suggest you use "magick", not "convert". On that file, I get the same error with pre-built v7.0.8-64 on Windows 8.1. With "-debug all", I also get: Coder (TIFF) generated an image despite an error (450), notify the developers 2020-01-14T15:49:52+00:00 0:04.171 1.234u 7.0.8 Wand magick[1692...
by snibgo
2020-01-14T08:21:55-07:00
Forum: Users
Topic: Convert PDF to JPG: some elements are lost
Replies: 3
Views: 137

Re: Convert PDF to JPG: some elements are lost

IM delegates the rasterization of PDF to Ghostscript. These annotations are pop-up notes. From https://stackoverflow.com/questions/15259730/rendering-text-annotations-in-ghostscript : Popup annotations are basically interactive, because you can open and close them, move them around etc, and Ghostscr...