[Flow] Extract image EXIF data for resource objects and resize image on upload
Jan Greth
jan at greth.me
Wed Jul 24 09:47:16 CEST 2013
Hi Christian
> I dont know about the internals of flow in this regard, but there are
> librarys for php (also native ones) that can help you.
>
> http://www.php.net/manual/en/intro.exif.php
>
> For resizing images this might work:
>
> http://www.php.net/manual/en/function.imagecopyresized.php
thanks for your two links. I have a plain PHP Scrip working which can
extract the EXIF Data using the PHP EXIF library but for that (and also
resize on upload - btw. thanks Carsten for your answer, good idea! ) I
need the "original" image file. But Flow is working with the resource
objects and afaik the original image files are not stored (persisted).
So, i need to know what happend to the images. Are the EXIF datas still
there or do i have to do sth like:
Client: - Check valid file Type
-> upload to Server as plain file with no resource object convertion
Server: - check for valid file
- extract EXIF Data
- if needed: do resize
- persist image as rsource object and EXIF data also
- delete original file because not needed anymore
What do you Flow Cracks think? :)
Greetings,
Jan
More information about the Flow
mailing list