My wish is to place an image on a transparent background.
(Background size 400x400 - image size maybe 300x400 or 400x300)
I have no problem to get an background, red, yellow or blue, but transparent......
The "transparent" background becomes usually black.
Sometimes I have succeeded with a transparent background,
but then I changed any parameter(size,path,images...), the background was black again.
If the change was restored the background remained black....
Have tested a number of variants of commands.
(here, an example (In Windows - one row):
Code: Select all
convert -define jpeg:size=400x400 hatching_orig.jpg -resize "400x400>" -background transparent -gravity center -extent 400x400 pad_extent.jpg