Search found 21279 matches

by fmw42
2017-07-19T21:47:36-07:00
Forum: Users
Topic: Centriod calculation using connected-components
Replies: 6
Views: 49

Re: Centriod calculation using connected-components

Can you provide an example image and also please always provide your IM version and platform.
by fmw42
2017-07-19T18:03:31-07:00
Forum: Users
Topic: How to simulate CMYK decoded as RGB?
Replies: 4
Views: 47

Re: How to simulate CMYK decoded as RGB?

I think the main difference between your two results is that the first one has an "sRGB IEC61966-2-1 black scaled" profile and the one you think is wrong has no profile. Look at the results from identify -verbose yourimage. Profiles can make a difference in the way it looks. The data is slightly dif...
by fmw42
2017-07-19T15:49:18-07:00
Forum: Users
Topic: How I could obtain an rgb code without percentage?
Replies: 9
Views: 46

Re: How I could obtain an rgb code without percentage?

just add -depth 8 to your command convert rose:[5x5] -depth 8 txt: # ImageMagick pixel enumeration: 5,3,65535,srgb 0,0: (16705,16448,16962) #414042 srgb(65,64,66) 1,0: (25443,16448,16448) #634040 srgb(99,64,64) 2,0: (46517,15677,12336) #B53D30 srgb(181,61,48) 3,0: (42405,18504,17733) #A54845 srgb(16...
by fmw42
2017-07-19T13:59:44-07:00
Forum: Users
Topic: Centriod calculation using connected-components
Replies: 6
Views: 49

Re: Centriod calculation using connected-components

You could extract the region as its own image and then use identify -verbose -moments to get the relevant moments. See https://en.wikipedia.org/wiki/Image_moment (M10 and M01). The CCL centroid may be weighted, but for binary or constant regions, it will be equivalent to unweighted. If it is weighte...
by fmw42
2017-07-19T13:52:04-07:00
Forum: Users
Topic: Splitting 8-page Tiff into 7-Page
Replies: 1
Views: 17

Re: Splitting 8-page Tiff into 7-Page

Code: Select all

convert image.tiff[0-6] newimage.tiff
This will keep the first 7 pages (numbers 0 to 6) and remove the last one and save the first 7 pages to the new image.
by fmw42
2017-07-19T11:15:11-07:00
Forum: Users
Topic: Centriod calculation using connected-components
Replies: 6
Views: 49

Re: Centriod calculation using connected-components

The centroid is the average x,y location of all pixels in the region. Pixel coordinates are explained at http://www.imagemagick.org/Usage/distorts/#control_coordinates. I think only -distort considers pixels to have an area (image coordinates) rather than just points (pixel coordinates). So I believ...
by fmw42
2017-07-19T08:56:34-07:00
Forum: Users
Topic: -shadow like photoshop inner-shadow on rounded rectangle
Replies: 23
Views: 10880

Re: -shadow like photoshop inner-shadow on rounded rectangle

This should do it. Adjust the 25% to a larger value if you want the shadow darker. input: http://www.fmwconcepts.com/misc_tests/inner_shadow/penguin.png convert penguin.png \ \( -clone 0 -alpha extract \) \ \( -clone 1 -blur 0x10 -level 25x100% \) \ +swap -compose multiply -composite \ penguin_shado...
by fmw42
2017-07-18T15:24:25-07:00
Forum: Users
Topic: Setting Compose Attribute to None in a Photoshop file
Replies: 3
Views: 68

Re: Setting Compose Attribute to None in a Photoshop file

To do that in ImageMagick, you would have to extract the two layers and recomposite them and then save again as PSD. You cannot just use -set to change compose settings in PSD files. I really suspect you would need a PSD specific editor. I do not know of any tool that does that in command line mode....
by fmw42
2017-07-18T15:00:39-07:00
Forum: Users
Topic: Setting Compose Attribute to None in a Photoshop file
Replies: 3
Views: 68

Re: Setting Compose Attribute to None in a Photoshop file

ImageMagick does not write to or change PS compose settings as far as I know. If it did, then settings such as expressed with -set would have to come after reading the input PSD. But I don't think that capability exists within IM. ImageMagick is mostly a pixel processor. Perhaps you can do that with...
by fmw42
2017-07-18T14:52:01-07:00
Forum: Users
Topic: Combining many pairs of pics within a folder
Replies: 6
Views: 115

Re: Combining many pairs of pics within a folder

If you have no skips, then you could do something like the following. Lets call your image directory, test. Create a new directory at the same level to hold your output images, if you want. Then do the following script, which you can copy and past into a terminal window. First change directories to ...
by fmw42
2017-07-18T10:37:26-07:00
Forum: Users
Topic: Combining many pairs of pics within a folder
Replies: 6
Views: 115

Re: Combining many pairs of pics within a folder

Are "something" only in pairs. That is do you have XXX_001.jpg XXX_002.jpg and no other XXX_? Please provide your IM version. Can you provide a (partial) list of filenames in your folder, so we can see how they are listed in sequence. You will likely have to write a bash script loop over the files i...
by fmw42
2017-07-18T09:22:26-07:00
Forum: Users
Topic: -shadow like photoshop inner-shadow on rounded rectangle
Replies: 23
Views: 10880

Re: -shadow like photoshop inner-shadow on rounded rectangle

Please identify your IM version. Also please show your Photoshop result.
by fmw42
2017-07-18T09:20:00-07:00
Forum: Users
Topic: Basic settings for Tesseract
Replies: 1
Views: 42

Re: Basic settings for Tesseract

Please always provide your IM version and platform when asking questions, since syntax may vary. Try without the monochrome and read the input right after setting the density. You might also try larger densities and if you do, then increase the 15 arguments convert -density 300 in.pdf -negate -lat 1...
by fmw42
2017-07-17T15:44:09-07:00
Forum: Developers
Topic: Docs for PES format
Replies: 0
Views: 56

Docs for PES format

Code: Select all

convert -list format
shows:

PES* PES r-- Embrid Embroidery Format

But PES is not listed at http://www.imagemagick.org/script/formats.php

Please add that format to the formats.php page. Is a delegate library needed for that format?
by fmw42
2017-07-17T00:57:42-07:00
Forum: Magick.NET
Topic: Montage set const page width and height
Replies: 6
Views: 151

Re: Montage set const page width and height

Montage does not have page size controls. You could just resize the result to your desired results.