[TYPO3-dev] resize on large images after upload

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Mar 10 12:07:46 CET 2008


bernd wilke wrote:
> hello,
> 
> i had to extend the upload-handling of an extension for images which were 
> to large.
> Why don't use it in the core on file(image)-uploading in fileadmin?
> 
> it occured that the file were uploaded anyway and than the size was 
> checked. if it was to large it just was deleted and an error-message was 
> given.
> 
> my idea: 
> so the file is available on the server, I can resize it with IM/GM before 
> storing (and save a lot of space) instead of a resizing everytime I want 
> to display it.

This exactly what I dislike for tt_news: it always resizes my images while I want them to be intact.

> The triggers for the resizing are: 
> filesize in bytes and resolution in pixel:
> if an image is larger than the allowed 1MB it is resized 
> if an image is larger than the later needed resolution (1024x768) it is 
> resized
> both limits are configurable
> 
> the resulting image is resized to my maximum resolution (which should be 
> selected to fit the filesize, as this is not checked any more)
> 
> what about having this in the core?
> 
> for uploads to fileadmin or uploads to any extension.
> it should be configurable in install-tool like the maximum size for 
> uploads and the maximum pixel-size for FE-images
> 
> BTW: a prototype-code may be seen on my german site: 
> http://www.pi-phi.de/t3v4/index.php?id=33#c235

I would prefer another way: context menu with "Resize image" item.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"




More information about the TYPO3-dev mailing list