Skip to content

Add support for Imagify compatibility#2034

Open
KytHub wants to merge 3 commits into
developfrom
issue-27341
Open

Add support for Imagify compatibility#2034
KytHub wants to merge 3 commits into
developfrom
issue-27341

Conversation

@KytHub
Copy link
Copy Markdown
Collaborator

@KytHub KytHub commented Jan 25, 2025

Introduced a new compatibility class to integrate Imagify's WebP functionality into Brizy's cropped image handling. Applied a filter to replace cropped image URLs with WebP versions when available. This ensures optimized image loading while maintaining backward compatibility.
https://github.com/bagrinsergiu/blox-editor/issues/27341

Nichita added 2 commits January 25, 2025 11:38
Introduced a new compatibility class to integrate Imagify's WebP functionality into Brizy's cropped image handling. Applied a filter to replace cropped image URLs with WebP versions when available. This ensures optimized image loading while maintaining backward compatibility.
@KytHub KytHub changed the title Add support for Imagify compatibility with Brizy editor Add support for Imagify compatibility Jan 27, 2025
Comment thread editor/crop-cache-media.php Outdated
return $this->replaceCdnUrl($imgUrl);
$imgUrl = $this->replaceCdnUrl( $imgUrl );

$imgUrl = apply_filters( 'brizy_after_cropped_img', $imgUrl );
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verifica te rog.. $imgUrl pare sa fie url-l la attachment.. dar handlerul la 'brizy_after_cropped_img' asteapta acolo sa fie path.. file_exists imi pare ca returneaza false cand ii dai URL.

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.

2 participants