Some days ago, I wondered whether it would be possible to hook into TYPO3’s file upload process to automatically resize pictures. Why you ask? Here is a common use-case: you would like to let your editors upload any picture they have without having to fear your fileadmin/ being invaded by 12 MP shots (4256 × 2832 pixels, ~5 MB)…
As said, I searched for a possible hook to be used within TYPO3 but did not find it. Instead, by reading code, I discovered that there was a trash/recycler available but that nearly nobody was aware of (read my recent article on this topic). This is why I proposed two hooks to be added to TYPO3 and could commit them for current TYPO3 trunk, that is for upcoming TYPO3 4.5.0. I then created an extension to take advantage of them:
image_autoresize.
As I know that people running current versions of TYPO3 are likely to wish they could use this extension too, I made it compatible with TYPO3 4.3 and TYPO3 4.4 thanks to XCLASS.
You will even be able to create complex rules based on some special directories or groups the current editor is member of.
Rule sets let you override general configuration. For instance, you may allow higher resolution pictures if they are targeted at the press (e.g., allow pictures to be as wide as 4000 px). This may either be group-related (user of group “Press and Communication” are allowed to upload such big pictures) and/or directory-related (photos uploaded in a special “press/” directory are allowed to be that large).
Other options (such as auto-rotating picture based on EXIF orientation) are available. Be sure to read the
manual. It will show you all features of this extension.
I’m sure you, as administrator, and your editors will enjoy this extension:
