Search found 25563 matches

by fmw42
2019-09-03T10:00:24-07:00
Forum: Users
Topic: How to crop along a yellow frame
Replies: 10
Views: 13947

Re: How to crop along a yellow frame

Here is one way to do that. Convert the image to binary where yellow becomes white and the rest becomes black. Then flood fill the outer black area with white. Then get the bounding box of the largest black region, which corresponds to the center area inside the yellow border. Then crop to that boun...
by fmw42
2019-09-03T09:20:00-07:00
Forum: Consulting
Topic: PAID: Sprite Sheet de-duping for video game
Replies: 3
Views: 72470

Re: PAID: Sprite Sheet de-duping for video game

Are these exact duplicates or near duplicates? If the latter, how are they not exactly the same? Have you considered using a perceptual hash to find similar or same images? ImageMagick has compare -metric phash image1 image2 null: See https://imagemagick.org/discourse-server/viewtopic.php?f=4&t=...
by fmw42
2019-09-03T09:15:36-07:00
Forum: Consulting
Topic: Paid: Mosaic Generation
Replies: 1
Views: 61964

Re: Paid: Mosaic Generation

Sorry, perhaps I misunderstand. But the command in that reference does just what you are asking. Give it two images and do the compose lighten command. Or use

Code: Select all

convert image1 image2 -compose lighten -composite result

or

convert image1 image2 -evaluate-sequence max result
by fmw42
2019-09-02T22:14:42-07:00
Forum: IMagick
Topic: How Get And Sell Deals The Smart Way
Replies: 0
Views: 164003

Re: Error at install IMagick for PHP

ImageMagick 6.7.6-5 is ancient. Try installing a newer version. Perhaps your version is too old for Imagick.
by fmw42
2019-09-02T19:38:57-07:00
Forum: Users
Topic: Setting interline-spacing with Pango?
Replies: 3
Views: 11893

Re: Setting interline-spacing with Pango?

Perhaps the IM developers will add these patches to the Pango ImageMagick coder?
by fmw42
2019-09-02T19:37:33-07:00
Forum: Bugs
Topic: Possible bug IM 7.0.8.63 Q16 Mac OSX with JPG output
Replies: 6
Views: 79004

Re: Possible bug IM 7.0.8.63 Q16 Mac OSX with JPG output

Snibgo: I do not want a bilevel output. I wanted to crop the input image without affecting the color. The clone is converted to black and white before the -type bilevel. Adding +dither -colors 2 before -type bilevel did not change the output and should not have any bearing on making the clone into b...
by fmw42
2019-09-02T14:10:11-07:00
Forum: Bugs
Topic: Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity
Replies: 4
Views: 73407

Re: Possible bug IM 7.0.8-63 Q16 PC with Morphology Intensity

I can duplicate the issue with IM 6.9.10.63 Q16 and IM 7.0.8.63 Q16 HDRI on Mac OSX Sierra. But I am not sure which is correct. Nevertheless, I would think theys should be the same.

I even tried setting -intensity rec709luma for both commands before -morphology, but it did not make any difference.
by fmw42
2019-09-02T11:58:38-07:00
Forum: Users
Topic: Adding a colored aura around an image
Replies: 7
Views: 14729

Re: Adding a colored aura around an image

Neat! Great ideas.

I like approach 2 best. It is fast, looks good and is simple with only one clone.
by fmw42
2019-09-02T11:54:52-07:00
Forum: Users
Topic: Different codecs
Replies: 1
Views: 6803

Re: Different codecs

If the delegate library supports the format that you want, you might be able to do that by editing or creating an entry in the delegates.xml file. See delegates.xml at https://imagemagick.org/script/resources.php
by fmw42
2019-09-02T10:32:18-07:00
Forum: Fred's Scripts
Topic: How to convert an image into cylinderical image usng imagemagic?
Replies: 19
Views: 307481

Re: How to convert an image into cylinderical image usng imagemagic?

@dattran92. Please see the private message I sent you on this server.
by fmw42
2019-09-01T15:49:24-07:00
Forum: Bugs
Topic: Possible bug IM 7.0.8.63 Q16 Mac OSX with JPG output
Replies: 6
Views: 79004

Possible bug IM 7.0.8.63 Q16 Mac OSX with JPG output

I have some code below that clones an image and uses connected components on a binary version to get crop coordinates. If I output to JPG the result is wrongly grayscale. But if I output to PNG, the result is properly in color. The input is a color JPG. Input: http://www.fmwconcepts.com/misc_tests/...
by fmw42
2019-09-01T15:09:57-07:00
Forum: Users
Topic: Is it possible to make new line with delimiter in label %t ?
Replies: 3
Views: 8192

Re: Is it possible to make new line with delimiter in label %t ?

Sorry, I still do not understand. Please show and example of the input filename, text1 and text2. If you put your text into variables, then you can do

Unix Syntax for variables.

Code: Select all

text1="XYZ"
text2="123"
montage -label %t_${text1}_${text2} -tile x1 *.jpg x.jpg
by fmw42
2019-09-01T14:58:38-07:00
Forum: Users
Topic: detect object and crop around it?
Replies: 1
Views: 8235

Re: detect object and crop around it?

With regard to automatically cropping, this is one method, but it may not work in all cases, since the clouds are white also and for the cases where other crosses are behind and overlapped by the main cross. The idea is to make a copy of the image (clone) and threshold it so that the crosses are whi...
by fmw42
2019-09-01T14:41:47-07:00
Forum: Users
Topic: Crop and extend - page offsets are too high - incorrect names of tiles
Replies: 5
Views: 9124

Re: Crop and extend - page offsets are too high - incorrect names of tiles

They are even more important in Imagemagick 7.
by fmw42
2019-09-01T10:41:44-07:00
Forum: Users
Topic: Is it possible to make new line with delimiter in label %t ?
Replies: 3
Views: 8192

Re: Is it possible to make new line with delimiter in label %t ?

I do not understand your question about delimiter character. What is line1 and line2? montage does not know which line or row in the montage the image is on. Perhaps I misunderstand what you are asking. Your syntax is bad. Use -label before reading the input. So this works for me on Mac OSX montage ...