[EMAIL PROTECTED] on wrote...
| I'm new to ImageMagick and require some assistance creating an
| image to burn on a CD/DVD. Looks like the sequence is:
|
| 1) convert original jpg image to png image.
|
not nessary...
| 2) create a png mask image of the same dimensions as the original image with:
| a) xc:black
| b) -fill white
| c) circle of CD/DVD dimensions
| d) position white circle over image part to be extracted
|
| 3) convert original-image -compose dst-in mask-image with -repage to produce:
| a) square image
| b) transparent outer area
| c) image to be transfered to CD/DVD
|
Error... Dst-IN will use a image with an alpha channel,
NOT a grey scale mask. Change the previous (2) step to
-size WxH xc:none
the -fill color does not matter as along it is opaque which it is by
default.
| 4) sharpen, lighten image.
|
| 5) compress image into gif with lowest number of colors, to optimize
| transfer speed to USB DVD burner/printer.
|
| 6) write required text in an arc across top and bottom of DVD image in
| color represented by one of the colors in the gif map.
|
| If anyone has a script or suggestions for how to do this, please pass
| it along. While I generally understand the sequence, figuring out the
| syntax is a bit challenging.
|
| Many thanks!
|
convert image.jpg {lighten darken image now} \
\( -size WxH xc:none -draw 'circle X,Y X,Y1' \) \
-geometry +PX+PY -compose DstIn -composite +compose \
-trim +repage ...label_here... CD_image.gif
WxH is large enough to hold the circle
X,Y = W/2 , H/2
Y1 = Y + Radius
PX,PY position for mask
The ...label_here... step is optional but if you are wanting arced or
circled text then it is best created as a separate image, then
overlayed at that point, as the circle image is now defined an
positioned.
See IM Examples
Compount Fonts, Arched font...
http://www.imagemagick.org/Usage/fonts/#arch
Circlular Arc Distortion...
http://www.imagemagick.org/Usage/distorts/#map_circlar_arc
Circled Text (polar Distortion)...
http://www.imagemagick.org/Usage/distorts/#map_polar
the text could also be made with a seperate command to simplify the
scripting.
If you write a script, please sumbit it back to us
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
This is no time to argue about time... We don't have the time.
-- Deanna Troi -- StarTrek Movie "First Contact"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users