[TYPO3-english] GIFBUILDER duplicates images

Alexander Dorn debao84 at googlemail.com
Mon Mar 3 00:56:41 CET 2014


Hello Joey, 

I did not know the mask feature of image resource. 
And I do not really understand how the masking of img_resource works. Can you please give me an example?


I probably found the reason why the generated hashes differ:

In the actual Gifbuilder-Class  TYPO3\CMS\Frontend\Imaging\GifBuilder in line 715 the hash is calculated with the whole setup of the Gifbuilder.

Line 715:	return $this->tempPath . $pre . $meaningfulPrefix . \TYPO3\CMS\Core\Utility\GeneralUtility::shortMD5(serialize($this->setup)) . '.' . $this->extension();

I reloaded the page and copied the serialized strings into a little php script where I compared both lines. The highlighted property "atime" changes on every request and so changes the hash.
Did I mess up something with the FAL?

There are two occurences of the serialized file from the FAL with a lot of text. :)
TYPO3\CMS\Core\Resource\File":9:{s:10:"*indexed";b:1;s:12:"*indexable";b:1;s:21:"*indexingInProgress";b:0;s:20:"*updatedProperties";a:0:{}s:13:"*properties";a:35:{s:3:"uid";s:3:"711";s:3:"pid";s:1:"0";s:6:"tstamp";s:10:"1391211646";s:6:"crdate";s:10:"1391211646";s:9:"cruser_id";s:1:"0";s:7:"deleted";s:1:"0";s:9:"t3ver_oid";s:1:"0";s:8:"t3ver_id";s:1:"0";s:10:"t3ver_wsid";s:1:"0";s:11:"t3ver_label";s:0:"";s:11:"t3ver_state";s:1:"0";s:11:"t3ver_stage";s:1:"0";s:11:"t3ver_count";s:1:"0";s:12:"t3ver_tstamp";s:1:"0";s:13:"t3ver_move_id";s:1:"0";s:10:"t3_origuid";s:1:"0";s:4:"type";s:1:"2";s:7:"storage";i:0;s:10:"identifier";s:71:"/typo3conf/ext/property_manager/Resources/Public/img/b2bhomer_maske.png";s:9:"extension";s:3:"png";s:9:"mime_type";s:9:"image/png";s:4:"name";s:18:"b2bhomer_maske.png";s:5:"title";N;s:4:"sha1";s:40:"6819592549de11f176566e018f1f8afb1d0df4d4";s:4:"size";i:2114;s:13:"creation_date";s:10:"1391211546";s:17:"modification_date";s:10:"1391211546";s:5:"width";s:3:"159";s:6:"height";s:2:"38";s:11:"description";N;s:11:"alternative";N;s:5:"atime";i:1393801355;s:5:"mtime";i:1391211546;s:5:"ctime";i:1392809979;s:8:"mimetype";s:9:"image/png";}

I tried to reproduce the error on a 6.1.7 introduction package system but there it works fine.


Alexander


Am 02.03.2014 um 18:18 schrieb JoH asenau <info at cybercraft.de>:

> Am 02.03.2014 17:33, schrieb Alexander Dorn:
>> Hello,
>> 
>> the problem still exists. When I change the TS to use a plain Image the images get cached as expected.
>> 
>> I've used the GIFBUILDER in previous projects and I never had this issue.
>> 
>> If someone knows how to get the image cached with GIFBUILDER please give me a hint.
> 
> Is there any reason why you don't use the default masking features m.mask, m.bgImg and m.bottomImg of imgResource?
> 
> Maybe this does not solve the GIFBUILDER problem, but it should give you a workaround.
> 
> HTH
> 
> Joey
> 
> -- 
> Wenn man keine Ahnung hat: Einfach mal Fresse halten!
> (If you have no clues: simply shut your gob sometimes!)
> Dieter Nuhr, German comedian
> Xing: http://contact.cybercraft.de
> Twitter: http://twitter.com/bunnyfield
> TYPO3 cookbook (2nd edition): http://www.typo3experts.com
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list