-
Notifications
You must be signed in to change notification settings - Fork 470
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
Ignore Vector Images in Image API #30196
Comments
### Proposed Changes * Added a utility method to check for vector image extensions in `UtilMethods`. * Updated `ImageFilterExporter` to skip transformation for vector images (SVG, EPS, etc.). ### Checklist - [x] Tests - [x] Translations - [x] Security Implications Contemplated (add notes if applicable) ### Additional Info This pull request addresses issue #30196, ensuring that the Image API ignores vector images during processing. Now only raster images will be transformed. ### Videos #### Original https://github.com/user-attachments/assets/8e6f04f7-aad9-4d20-a92b-b9e5c7bac485 #### Updated https://github.com/user-attachments/assets/bb2408f0-3db5-47f4-9dd2-85ba21e98bd0
IQA PassedNow the Image API is Ignoring the Vector images DotCMS Docker Image: ScreenshotsScreen.Recording.2024-10-08.at.12.mp4 |
This change only covered changes in the ImageAPI. At UI level, we still need to disable the edition. A new card was created for it #30271 |
Tested on the last trunk // Docker // FF. We are ignoring any kind of image filter on vector images |
User Story
As a developer, I want the be able to use the Image API, but occasionally, I need to pass vector images like SVG or EPS, the API should not try to apply transformation to that kind of images.
Acceptance Criteria
Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.:
N/A
Assumptions & Initiation Needs
Quality Assurance Notes & Workarounds
The text was updated successfully, but these errors were encountered: