Search found 44 matches
- 2016-01-07T06:07:44-07:00
- Forum: Users
- Topic: Cut image into pieces and recombine 3 horizontal
- Replies: 8
- Views: 5659
Re: Cut image into pieces and recombine 3 horizontal
But I want to start the first cut at the bottom of the image, not at the top. How can I do this? Adding "-flip" before and after the "-crop" operation seems to work: convert -flip -crop 800x1200 -flip input.png output_%d.png How can I set, that it only takes 3 images and after t...
- 2016-01-01T13:08:32-07:00
- Forum: Users
- Topic: montage does not seem to honor "-strip"
- Replies: 7
- Views: 5321
Re: montage does not seem to honor "-strip"
why do you think the gamma chuck in redundant? Like the "-define" documentation says: " As a special case, if the sRGB chunk is excluded and the gAMA chunk is included, the gAMA chunk will only be written if gamma is not 1/2.2, since most decoders assume sRGB and gamma=1/2.2 when no ...
- 2016-01-01T09:35:53-07:00
- Forum: Users
- Topic: montage does not seem to honor "-strip"
- Replies: 7
- Views: 5321
Re: montage does not seem to honor "-strip"
That works, thanks.
But why does "montage -strip" not do it it in the first place? Is it a bug? The montage option summary does list -strip as a supported option.
But why does "montage -strip" not do it it in the first place? Is it a bug? The montage option summary does list -strip as a supported option.
- 2015-12-31T15:07:23-07:00
- Forum: Users
- Topic: montage does not seem to honor "-strip"
- Replies: 7
- Views: 5321
montage does not seem to honor "-strip"
Even with the "-strip" option, "montage" outputs a PNG with a redundant gAMA chunk: $ montage rose: -strip PNG:- | identify -verbose - | grep 'png:' png:bKGD: chunk was found (see Background color, above) png:cHRM: chunk was found (see Chromaticity, above) png:gAMA: gamma=0.45454...
- 2015-12-20T11:25:35-07:00
- Forum: Users
- Topic: "-distort resize" followed by "-flatten" causes a strange 2px border
- Replies: 8
- Views: 7086
Re: "-distort resize" followed by "-flatten" causes a strange 2px border
Good to know, thanks!
- 2015-12-19T07:58:29-07:00
- Forum: Users
- Topic: "-distort resize" followed by "-flatten" causes a strange 2px border
- Replies: 8
- Views: 7086
Re: "-distort resize" followed by "-flatten" causes a strange 2px border
But "-distort" is responsible for extending the virtual canvas in this strange way, isn't it?
Is it supposed to do that?
Is it supposed to do that?
- 2015-12-18T11:07:29-07:00
- Forum: Users
- Topic: "-distort resize" followed by "-flatten" causes a strange 2px border
- Replies: 8
- Views: 7086
Re: "-distort resize" followed by "-flatten" causes a strange 2px border
That seems to work in my case, thanks!
I'm still a little worried about the "-distort resize" behavior though, since I don't understand why it happens.
I'm still a little worried about the "-distort resize" behavior though, since I don't understand why it happens.
- 2015-12-18T10:00:04-07:00
- Forum: Users
- Topic: "-distort resize" followed by "-flatten" causes a strange 2px border
- Replies: 8
- Views: 7086
"-distort resize" followed by "-flatten" causes a strange 2px border
This command: convert netscape: -distort resize 100x100! -flatten x.png Results in this image for me: https://i.imgur.com/xDN0n8d.png Note the image size of 102x102, and a 2px green border on the bottom and right egde. When I run the same command with " -resize " instead of " -distort...
- 2015-12-16T06:46:39-07:00
- Forum: Users
- Topic: Extracting the nth adjacent sub-image ("undoing an +append")
- Replies: 6
- Views: 6626
Re: Extracting the nth adjacent sub-image ("undoing an +append")
fmw42, I ended up using your approach, and it is working well. But I have a follow-up question: Why do you do this... \( -clone 0 -alpha extract \) \( -clone 1 -scale x1! -scale $dim! \) -delete 0 instead of just this? -alpha extract \( -clone 0 -scale x1! -scale $dim! \) It seems to work just as we...
- 2015-12-13T12:52:59-07:00
- Forum: Users
- Topic: Extracting the nth adjacent sub-image ("undoing an +append")
- Replies: 6
- Views: 6626
Re: Extracting the nth adjacent sub-image ("undoing an +append")
Understood, thanks.
PS: I didn't realize that IM 7 is already in beta. Nice!
PS: I didn't realize that IM 7 is already in beta. Nice!
- 2015-12-13T00:58:20-07:00
- Forum: Users
- Topic: Extracting the nth adjacent sub-image ("undoing an +append")
- Replies: 6
- Views: 6626
Re: Extracting the nth adjacent sub-image ("undoing an +append")
Thanks for the reply fmw42! What would you consider the advantages of this method? (From what I can see, the text output is easier for the shell script to parse than with my method, but in return it needs one extra convert call - to get the original image dimensions. Would it be possible to avoid th...
- 2015-12-12T06:59:13-07:00
- Forum: Users
- Topic: Extracting the nth adjacent sub-image ("undoing an +append")
- Replies: 6
- Views: 6626
Extracting the nth adjacent sub-image ("undoing an +append")
Consider an input image that was created by horizontally appending three opaque rectangular images on a transparent background, for example: convert \( logo: -resize 35% \) rose: granite: -background Transparent -gravity North +append input.png http://i.imgur.com/ijeNZWb.png The problem Given an ima...
- 2015-09-10T07:48:16-07:00
- Forum: Users
- Topic: combining chained convert commands into one
- Replies: 3
- Views: 2377
Re: combining chained convert commands into one
Huh, you're right, it does work. No idea what I did wrong when I tried it yesterday... :oops: Thanks for responding! You could add a little -fuzz XX% in case some values are not quite at gray2. But in principle, you commands should work. I'm not replacing gray2 pixels, I'm replacing a range of pixel...
- 2015-09-09T18:41:29-07:00
- Forum: Users
- Topic: combining chained convert commands into one
- Replies: 3
- Views: 2377
combining chained convert commands into one
I'm trying to darken and blur a grayscale PNG image, and then replace all pixels which are darker than gray2, with gray2. This works fine: convert a.png -level 0%,85% -blur 0x5 b.png convert b.png -black-threshold '2%' c.png convert c.png -fill gray2 -opaque black d.png However if I try to combine t...
- 2011-10-06T10:12:17-07:00
- Forum: Users
- Topic: finding images within an image & excluding them from filters
- Replies: 6
- Views: 13891
Re: finding images within an image & excluding them from fil
Anyways, you're right that this fuzzy " compare -subimage-search " is very slow. If I were to add the additional assumptions that... each occurrence of the search image inside the source image is a pixel-perfect copy of the original search image (except of course for pixels which are trans...