Skip to content
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

NGSTACK-901 replace decorator service for variation path generator if Netgen Admin UI is enabled #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hknezevic
Copy link
Member

This PR replaces original Ibexa webp image variation path generator with our implementation, which generates variation paths compliant with the ones generated in legacy image handler.

The idea is to keep the path patterns in sync, to prevent the storage growth by creating duplicate variations with different paths, depending if they were generated through the Symfony stack or the legacy kernel.

Example:
Original image in JPEG format is uploaded: example.jpg
We want to generate 'medium' image variation in Webp format.
Ibexa variation path generator will produce variation path .../example_medium.jpg.webp
Our class produces path .../example_medium.webp , which matches the path pattern produced with the legacy image handler class.

The generator is replaced only if the NetgenAdminUiBundle is activated on the website. If not (in which case we are using standard Ibexa Admin UI), we will keep the original variation path generator.

… our implementation which generates legacy-compliant paths for ngadminui
@hknezevic hknezevic requested a review from emodric September 10, 2024 13:00
@hknezevic hknezevic changed the title NGSTACK-901 NGSTACK-901 replace decorator service for variation path generator if Netgen Admin UI is enabled Sep 10, 2024
@hknezevic hknezevic force-pushed the NGSTACK-901-ibexa-ngadminui-decorator branch from 74463db to 001af7d Compare September 10, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant