[TYPO3-dev] IMG_RESOURCE object and stripProfile = 1 - bug ?

Krystian Szymukowicz t33k at prolabium.com
Thu Dec 16 12:07:34 CET 2010


W dniu 2010-12-16 11:51, Krystian Szymukowicz pisze:
> W dniu 2010-12-16 11:31, Krystian Szymukowicz pisze:
>>
>> hi
>>
>> I am just creating an extension where I need to have some files from
>> uploads/tx_myext/ to be "processed" by TYPO3 and moved to
>> typo3temp/pics/ without any changes to file. So only filename is changed.
>> Yes. The reason seems to be strange but there is a background that I do
>> not like to bother you as the post would be longer.
>>
>>
>>
>>
>> Anyway - I though that having "stripProfile = 1" will make TYPO3 to
>> write the modified file in typo3temp/pics/ but this is not working.
>>
>>
>>
>> imageBigFlash = IMG_RESOURCE
>> imageBigFlash {
>> file {
>> import = uploads/tx_myext/
>> import.data = register:tx_myext_imageBig
>> stripProfile = 1
>> }
>> }
>>
>>
>
>
> I think I found some workaround.
>
> The "parmas" with some "neutral" value.
>
>
> For example.
>
> imageBigFlash = IMG_RESOURCE
> imageBigFlash {
> file {
> import = uploads/tx_myext/
> import.data = register:tx_myext_imageBig
> stripProfile = 1
> params = -font courier
> }
> }
>
>
> Now the image is processed and nothing is changes becase "-font courier"
> without any other params will do nothing to image.
>
>


or even better one:  "params = -strip" (so its equal to stripProfile = 1)


-- 
grtz
Krystian Szymukowicz




More information about the TYPO3-dev mailing list