[TYPO3] Extension TCA fields... uploading images and resizing them?

Michael x.mountain at gmail.com
Mon May 19 12:01:06 CEST 2008


Hey Andrew,
 Don't know if this is helpful, but typo uses the GD library to process 
images(to my knowledge)... As far as preprocessing them, I'm not too 
sure what you would need to do... if it were me I would just modify the 
core... but that's probably not the best way to go about it.

Michael

Andrew Plank wrote:
> Hi,
>
> I've written an extension that allows users to upload images. I would 
> like to be able to resize these images - as they are uploaded - to a 
> pre-determined size.
>
> I've read in the docs that once a file exists in the uploads folder, it 
> shouldn't be touched in any way, except by Typo3's own internal 
> processing. Therefore - I thought - the image needs to be processed 
> somewhere between the file beginning its upload, and being finally saved 
> into the uploads folder.
>
> Reading further into the docs, I found the "user" type, where the form 
> field can be a custom field. However, after a little while tinkering 
> with this, I realised that this is only the method to display a custom 
> field on the page... It's not how to grab the file as it is uploaded.
>
> Is there some sort of hook into the system one can make that allows one 
> to process uploaded images before they are saved?
>
> I find it quite simply boggling that the resizing of uploaded images 
> isn't a default feature within the "files" field type when "images" is 
> chosen as the allowed file types.
>
> Any help or pointers on this subject would be most greatly appreciated.
>
> //Plankmeister.
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>   



More information about the TYPO3-english mailing list