Search found 90 matches

by HugoRune
2011-03-14T07:03:07-07:00
Forum: Users
Topic: undo a composite -dissolve
Replies: 23
Views: 102012

Re: undo a composite -dissolve

I should warn you. One of my firsts tests with using u.p{0,0} failed. I wanted to reduce the number of images, so after I had the alpha, I added it immediatally to the original image. It sort of simplified and removed the needs for extra cloning. I Then tried to use the now fullytransparent p{0,0} ...
by HugoRune
2011-03-11T14:11:56-07:00
Forum: Users
Topic: undo a composite -dissolve
Replies: 23
Views: 102012

Re: undo a composite -dissolve

to recover an overlay from a series of images with mixed unknown backgrounds (img001.png-img999.png): convert img*.png -evaluate-sequence max maximage.png convert img*.png -evaluate-sequence min minimage.png check whether the background area is monochrome in both outputs, and then proceed as above ...
by HugoRune
2011-03-11T13:04:55-07:00
Forum: Users
Topic: undo a composite -dissolve
Replies: 23
Views: 102012

Re: undo a composite -dissolve

Great tutorial, Anthony! Some random thoughts --- convert match_burn_skyblue.png match_burn_gold.png -alpha off \ \( -clone 0,1 -compose difference -composite \ -separate -evaluate-sequence max -auto-level -negate \ \) -delete 1 -compose Copy_Opacity -composite \ xc:skyblue -fx " u.a==0 ? 0 : u...
by HugoRune
2011-03-09T07:02:00-07:00
Forum: Users
Topic: undo a composite -dissolve
Replies: 23
Views: 102012

Re: undo a composite -dissolve

This is an interesting problem. My attempt below does not quite work, I have not found the error yet: (edit: I think i found all errors) ----- The goal is to recover an overlay (with varying transparency alpha) , given a background and composite when the composite is white, and the background is whi...
by HugoRune
2011-03-08T16:54:50-07:00
Forum: Users
Topic: mogrify Batch conversion of BMP > TIFF
Replies: 9
Views: 36310

Re: mogrify Batch conversion of BMP > TIFF

i have not used it so far, but imagemagick supports jpeg2000.
http://www.imagemagick.org/script/jp2.php

Code: Select all

FOR %a in (*.bmp) DO convert "%~a"  "%~na.jp2"
or

Code: Select all

mogrify -format jpeg2000 *.bmp
should do it
by HugoRune
2011-03-08T16:36:43-07:00
Forum: Users
Topic: mogrify Batch conversion of BMP > TIFF
Replies: 9
Views: 36310

Re: mogrify Batch conversion of BMP > TIFF

that is weird, it works for me. The error message indicates that mogrify cannot find any bmp files in F:\temp\out
Well, if the second command works...
by HugoRune
2011-03-08T16:16:27-07:00
Forum: Users
Topic: mogrify Batch conversion of BMP > TIFF
Replies: 9
Views: 36310

Re: mogrify Batch conversion of BMP > TIFF

I am trying to convert a folder full of BMP images to TIFF. They are individual frames from a movie. ... I have tried a number of commands but the one i really thought would work is this mogrify -format bmp *.tiff which gives me this error Magick: unable to open image `*.tiff': Invalid argument @ e...
by HugoRune
2011-03-08T11:55:22-07:00
Forum: Users
Topic: undo a composite -dissolve
Replies: 23
Views: 102012

Re: undo a composite -dissolve

That is, if the star was 50% transparent, and overlaid on the fully opaque dragon image, then you get the same result as the above. So what if the image being overlaid was semi-transparent to begin with? As far as I can tell, the method above works all right if the overlaid image contains semi-tran...
by HugoRune
2011-03-07T13:38:36-07:00
Forum: Users
Topic: undo a composite -dissolve
Replies: 23
Views: 102012

Re: undo a composite -dissolve

Good result Hugo and yes you have to use " not ' with windows. http://www.imagemagick.org/Usage/windows/ Thanks! I forgot about that. There really should be a warning if there are unparseable options passed to imagemagick Anyway, the general case: to undo a composite -dissolve X fileA.png file...
by HugoRune
2011-03-07T12:22:36-07:00
Forum: Users
Topic: undo a composite -dissolve
Replies: 23
Views: 102012

Re: undo a composite -dissolve

Eureka! Apparently the single quotes ' do not work in the -define compose:args='0,-1,2,0' under windows. With double quotes it works as intended. This may be a bug with windows or with imagemagick, not sure to undo a 50% dissolve ( composite -dissolve 50 -gravity South star.gif dragon_sm.gif combine...
by HugoRune
2011-03-07T10:10:14-07:00
Forum: Users
Topic: Suggestions: gradually-revealing image
Replies: 4
Views: 10282

Re: Suggestions: gradually-revealing image

check out http://www.imagemagick.org/Usage/channels/#zeroing http://www.imagemagick.org/Usage/channels/#combine_other http://www.imagemagick.org/Usage/compose/#multiply basically you need to select the saturation channel with -colorspace HSL -channel G then multiply the channel with a gradient mask ...
by HugoRune
2011-03-07T09:51:56-07:00
Forum: Users
Topic: undo a composite -dissolve
Replies: 23
Views: 102012

undo a composite -dissolve

I am looking for a way to "undo" this opperation: composite -dissolve 50 -gravity South star.gif dragon_sm.gif combine.png 50% http://www.imagemagick.org/Usage/compose/star.gif [over] http://www.imagemagick.org/Usage/compose/dragon_sm.gif = http://img852.imageshack.us/img852/6153/testv.png...
by HugoRune
2011-02-23T13:27:23-07:00
Forum: Users
Topic: change jpg quality only if lower than existing
Replies: 3
Views: 17841

Re: change jpg quality only if lower than existing

Thanks! Can I somehow apply that to all files in a directory with mogrify *.jpg? something like mogrify -quality 50% -define jpeg:extent $EXISTING_SIZE *.jpg Ideally I would want to leave files with lower compression level totally untouched, not recompressing them to stay at the same size. I suppose...
by HugoRune
2011-02-23T13:03:23-07:00
Forum: Users
Topic: change jpg quality only if lower than existing
Replies: 3
Views: 17841

change jpg quality only if lower than existing

Hi, Is there a way to tell mogrify to change the "-quality" compression level only if the image does not already have a lower quality setting? i.e. > mogrify -quality 50% *.jpg should leave files that are already compressed at quality 20% untouched. Or in other words, if the file size woul...
by HugoRune
2009-09-09T14:54:10-07:00
Forum: Bugs
Topic: -border switch changes colors of whole image
Replies: 2
Views: 6808

-border switch changes colors of whole image

When operating on an image sequence, and adding a border to the last image of the sequence, the -border switch randomly changes colors of that image, if certain preconditions are met. Strongly simplified example: convert logo: ( -clone 0 -bordercolor green -border 10x10 ) +append test.png http://img...