-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image processing is inconsistent between FilesProcessor and Media/ImageViewHelper #247
Labels
enhancement
New feature or request
Milestone
Comments
Thanks, I agree that there is inconsistency, solution 2 looks good and should be implemented. |
twoldanski
added a commit
that referenced
this issue
May 9, 2024
- new simplified output (off by default) - new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst - code refactoring - allows to process more image formats Resolves: #247, #617
twoldanski
added a commit
that referenced
this issue
May 9, 2024
- new simplified output (off by default) - new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst - code refactoring - allows to process more image formats Resolves: #247, #617
lukaszuznanski
pushed a commit
that referenced
this issue
May 10, 2024
- new simplified output (off by default) - new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst - code refactoring - allows to process more image formats Resolves: #247, #617
twoldanski
added a commit
that referenced
this issue
May 10, 2024
- new simplified output (off by default) - new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst - code refactoring - allows to process more image formats - add additional tests Resolves: #247, #617
lukaszuznanski
pushed a commit
that referenced
this issue
May 13, 2024
* [FEATURE] Improve file processing - new simplified output (off by default) - new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst - code refactoring - allows to process more image formats Resolves: #247, #617 * [FEATURE] Improve file processing - new simplified output (off by default) - new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst - code refactoring - allows to process more image formats - add additional tests Resolves: #247, #617
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note, the following is reported with .ai / .eps formats which I'm aware aren't natively supported as images. However, the issue still remains the same - FilesProcessor seems to use the correct API for processing files whereas Media/ImageViewHelper takes a shortcut that potentially causes errors when processing files that are image-incompatible, e.g. videos or PDF.
An alternative problem description could also be "Image processing ignores TYPO3_CONF_VARS.GFX.imagefile_ext when determining if file is an image".
Problem description:
Files of types like "ai" or "eps" do not get scaled when using FilesProcessor, but do get scaled when using MediaViewHelper. This is due to using different APIs:
This causes two side effects:
Media processing is inconsistent between FilesProcessor and MediaViewHelper
MediaViewHelper will explicitly treat every type of media as an "image", including videos/pdf/etc.
Long-term solution:
Solve inconsistency between FilesProcessor and MediaViewHelper. Problem is, FilesProcessor uses FileUtility to process which supports all file formats, but contains a condition that only uses File->getType to determine if file is an image. If not an image, no scaling/cropping is performed.
The text was updated successfully, but these errors were encountered: