I have created a number of images to be displayed on the Internet. (with ImageMagick,)
The web application can create a PDF document of the image / information.
When I try to create a PDF document, I got the error message:
Is it easy to solve?FPDF error: Alpha channel not supported .......
an example of code that creates some of the pictures that I use:
Code: Select all
Set InFile = ..........
Set Corner = .........
Set OutFile = .........
convert %InFile% -define "jpeg:Size=500x500" -thumbnail 500x500 ^
( +clone -threshold -1 ^
-draw "fill black polygon 0,0 0,%Corner% %Corner%,0 fill white circle %Corner%,%Corner% %Corner%,0" ^
( +clone -flip ) -compose Multiply -composite ^
( +clone -flop ) -compose Multiply -composite ^
) +matte -compose CopyOpacity -composite -sharpen 0x1.0 %Outfile%.png
- Rounded corners
- Transparent background
- OutFile have an PNG format.
For me it works equally well if the image is:
- Rounded corners
- White background
- JPG file format
//Jan