Transparent thumbnail (6)

1 Name: Anonymous : 2012-05-27 12:10 ID:fIa60zfR [Del]

Hello!
Users of my imageboard ask me to make transparent thumbnails for *.png-files. But I have no idea how to realize it.
Could I have some help with that?

2 Name: Anonymous : 2012-05-27 12:12 ID:fIa60zfR [Del]

Oh, yes, I use Wakaba.

3 Name: Anonymous : 2012-05-27 13:48 ID:fIa60zfR [Del]

I believe, I should add a command here:
use constant CONVERT_COMMAND => 'convert'; # location of the ImageMagick convert command (usually just 'convert', but sometime a full path is needed)
But I don't know which exactly.
Version: ImageMagick 6.5.7-8 2012-04-30 Q16

4 Name: Anonymous : 2012-05-27 19:02 ID:Heaven [Del]

find the line that says:

	my $thumbnail=THUMB_DIR.$filebase."s.jpg";

change it to:

	my $thumbnail=THUMB_DIR.$filebase."s.$ext";

5 Name: Anonymous : 2012-05-27 21:52 ID:fIa60zfR [Del]

I made this, now thumbnails are *.png, but they are still not transparent.

6 Name: Anonymous : 2012-05-27 22:27 ID:fIa60zfR [Del]

Solved.
-background white must be -background transparent

This thread has been closed. You cannot post in this thread any longer.