[Flow] Extract image EXIF data for resource objects and resize image on upload
Robert Lemke
robert at typo3.org
Fri Jul 26 06:50:22 CEST 2013
Hi Jan,
Jan Greth wrote:
>> If you didn't do it yet, you should have a look at the TYPO3.Media
>> package on git.typo3.org[1]. It uses Imagine[2] to transform images and
>> provides validators for image size, type and orientation
>
> Mh... In fact i did some tests with TYPO3.Media works so far. But is it
> reducing the filesize when doing a resize? And what about the EXIF's?
> Didn't find a possibility to extract.
I'm currently working a bit on the TYPO3.Media package (adjustments for
Flow 2.1). In my opinion it would at least make sense to integrate the
features you need into TYPO3.Media rather than trying to implement it
elsewhere.
If someone™ comes up with a basic concept how reading metadata like EXIF
can be integrated into Media, we can discuss this further here.
For the time being you can use the stream wrapper URI "resource://" .
$resource->getHash() for access to the actual file (in order to process
it with some EXIF library). Be aware though that in future versions of
Flow (that is: 2.1) you can't rely on that the file is stored in your
local file system ...
Cheers,
Robert
More information about the Flow
mailing list