#14537gifbuilder jpgs are 256 colors
Description
gifbuilder creates jpgs that are 256 colors, even if it begins with a high quality jpg.
I believe the source of the problem is in the usage of the imagecreate() function. In 3.7.0, it’s found on line 329 of class.tslib_gifbuilder.php.
After referring to the PHP docs, it appears that imagecreatetruecolor() is preferred for preserving image quality. This may only be an issue for installations using GDLib 2. (I’m using GDLib 2)
I tried simply changing imagecreate() to magecreatetruecolor(), but it then requires further adjustments in order to work correctly. (I got black backgrounds, and image quality was still 256 colors).
TYPOSCRIPT TEMPLATE5 = IMAGE
5.file = GIFBUILDER
5.file {
format = jpg
quality = 100
XY = [10.w],[10.h]
10 = IMAGE
- loading high-quality jpg (smooth gradients, etc.)
10.file {
import = uploads/media/
import.field = media
import.listNum = 1
}
12 = TEXT
12.fontFile = t3lib/fonts/GOUDOS.TTF
12.fontSize = 20
12.fontColor = white
12.niceText = 1
12.offset = 100,120
12.text.field = title
(issue imported from #M760)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.