Bug #18013
closedImage compositing with JPGs results in dithered output
0%
Description
I want to create a dynamic image, where I have a JPG as a background, and want to insert some text in the foreground:
TEASER = IMAGE
TEASER.file = GIFBUILDER
TEASER.file {
XY = 302, 282
format = jpg
quality = 100
10 = IMAGE
10.file = fileadmin/images/teaserbild.jpg
10.file.width = 300
20 = TEXT
20.text = Do it!
20.fontColor = white
20.offset = 190,190
}
The text turns out fine, but the background image suffers from heavy dithering. Looking in the temp folders, there is GIF version of teaserbild.jpg.
This somehow seems to be related to issue 4186. I already applied the latest patch from there, and just scaling an image works fine. But not when doing a composition.
Does anybody have a suggestion on this?
Attached is the original image, and a rendered result.
The problem arouses independet of ImageMagick version; I had a 4 and a 6 on Linux and a 5 on Windows - the images always look the same (they always get converted into a GIF at one step).
(issue imported from #M7194)
Files
Updated by Tomas Mrozek over 16 years ago
I confirm this issue even for TYPO3 4.2.0.
It must have something to do with the images being converted first to GIF at some point and then later to JPEG. As soon as this 2 settings are present, the problem is gone:
$TYPO3_CONF_VARS['GFX']['gdlib_png'] = '1';
$TYPO3_CONF_VARS['GFX']['png_truecolor'] = '1';
Of course, this has the unwanted effect of all other images (e.g. in GMENU) being truecolor PNG.
Updated by Leo Bossmann over 16 years ago
This issue is also present in TYPO3 4.2.1.
Setting above options for me only worked after enabling GDlib2:
$TYPO3_CONF_VARS['GFX']['gdlib_2'] = 1;
Updated by Christopher Hlubek over 16 years ago
I can confirm this for TYPO3 4.1.7
This is very serious for most of the interesting image manipulations!
Updated by Felix Buenemann over 15 years ago
I can confirm this, GIFBUILDER only outputs truecolor png when above settings are made. Maybe setting [FE][png_to_gif] = 1 could help remedy the generation of PNG truecolor images in the FE.
I also noticed, that the dithering done by Photoshop is far superior to the dithering by GDlib, which makes this issue even worse.
Btw. I'm using gdlib 2 (php bundled) and GraphicsMagick 1.3.3.
Updated by Felix Buenemann over 15 years ago
I think this is related to bug id #14537 and still actual in 4.2.8.
Updated by Thomas Deinhamer about 15 years ago
The problem occurs also for me, when using
typoscript to add a after.cObject to a menu; see
the file 'tt_content-menu-after-cObject.txt' for the details.
Consider the media-file at position 0 to be
a full-colored, high-quality jpg with high resolution.
The result is 'tt_content-menu-after-cObject.jpg'.
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.