Feature #56639
Implement "getPrivateStorageUriByResource()" for recieving (image-) file URIs
Status: | New | Start date: | 2014-03-07 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Robert Lemke | % Done: | 0% |
|
Category: | - | |||
Target version: | TYPO3 Flow Base Distribution - 2.x | |||
PHP Version: | Complexity: | |||
Has patch: |
Description
As talked about on Flow Mailing List (Thread: [Flow] Extract image EXIF data for resource objects and resize image on upload See here)
on August 5th 2013 it would be really handy to have a $resourceManager->getPrivateStorageUriByResource($resource)
method.
This is needed for processing imagefiles which are stored by TYPO3.Media Package by libraries/functions like exif_read_data() or with several imagemagick functions.
For getting the Exif information now the best way I found is like:
$exif_array = exif_read_data($this->resourceManager->getPersistentResourcesStorageBaseUri().$image->getResource()->getResourcePointer()->getHash(),'EXIF');
I think this is quite a bit overload and would be much nicer when we could use the API method Robert anounced in the thread mentioned above.
History
#1 Updated by Jan Greth over 1 year ago
- Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow