Search found 10 matches

by haibara
2009-08-24T01:29:10-07:00
Forum: Users
Topic: fraction cropping and hex creating?
Replies: 6
Views: 13051

Re: fraction cropping and hex creating?

about fraction cropping, i see.

i have to report my fault, only running "convert -size 800x600 xc:'#00000000' result.png" will produce 2-bit png, if adding "png32:" will produce normal png.

and another question, how can i use xc(with hex) to create 8-bit png?
by haibara
2009-08-23T21:28:06-07:00
Forum: Users
Topic: fraction cropping and hex creating?
Replies: 6
Views: 13051

Re: fraction cropping and hex creating?



1)
use [src] -gravity center -crop 100x100+0+0 +repage [dst]

to get exactly 100x100. Using percent is not recommened as you will not get exactly the size you want.


2) you have to put hex colors in quotes

convert -size 800x600 xc:"#00000000" png32:result.png
or
convert -size 800x600 xc ...
by haibara
2009-08-23T04:32:12-07:00
Forum: Users
Topic: fraction cropping and hex creating?
Replies: 6
Views: 13051

fraction cropping and hex creating?

here i have a image whose size is 300x300, i want to get little 100x100 images?

how can i use crop parameter to support fraction cropping?

convert -crop 33.333333...%x33.333333...% [src] [dst]

??????

the second question is about xc?

formly, i always use 'convert -size 800x600 xc:#00000000 png32 ...
by haibara
2009-02-12T02:28:57-07:00
Forum: Users
Topic: composite - not working right :/
Replies: 4
Views: 8835

Re: composite - not working right :/

composite [overlay] [background] [result]

you lost [result] and [overlay] [background] position is wrong
by haibara
2009-02-07T21:54:24-07:00
Forum: Users
Topic: what's using of "-mask filename" in convert?
Replies: 5
Views: 11598

Re: what's using of "-mask filename" in convert?




I am not familiar with -mask. To composite with a mask the command syntax is:

convert backgroundimage overlayimage maskimage -compose somecomposemethod -composite resultimage

see -compose methods at http://www.imagemagick.org/Usage/compose/

To create an image of a specific size and color ...
by haibara
2009-02-07T11:32:34-07:00
Forum: Users
Topic: what's using of "-mask filename" in convert?
Replies: 5
Views: 11598

Re: what's using of "-mask filename" in convert?



see http://www.imagemagick.org/Usage/compose/#compose

it allows the mask to control where two images are composited over each other or using other -compose settings

does cmd like this?
convert [overlay] [background] -mask [mask] [result]
i find strange result, only get [overlay] and ...
by haibara
2009-02-06T20:55:34-07:00
Forum: Users
Topic: what's using of "-mask filename" in convert?
Replies: 5
Views: 11598

what's using of "-mask filename" in convert?

i found its explanation - Composite the image pixels as defined by the mask.

what's the meaning? filter a image according to a specified mask?

regards
by haibara
2008-12-20T05:37:48-07:00
Forum: Users
Topic: how im do a color blending?
Replies: 4
Views: 9663

Re: how im do a color blending?

daer fmw42, thx for your reply

but point of my question is that i want any background

your method is suitable for background created by myself or manipulated by IM
in my requirement, background should be freewill, from real photo or computer graphics, not only described by IM

in fact, i try use ...
by haibara
2008-12-19T09:31:56-07:00
Forum: Users
Topic: how im do a color blending?
Replies: 4
Views: 9663

how im do a color blending?

here i have a icon in a green background without alpha and another background

i want to do a color blending to produce the icon in the background

like this:
a icon in a green background(no alpha)
http://i16.photobucket.com/albums/b30/haibarapcicp/green.jpg

another white background(in fact i ...
by haibara
2008-05-25T05:44:24-07:00
Forum: Users
Topic: how can draw a null image?
Replies: 2
Views: 8184

how can draw a null image?

i want a null image, it means rgba be all zero(?)

convert -size heightxwidth -background none {result}?

it seems wrong and infos me lacking of source

what should i do?

regards