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

Feature/328 Add option to activate ImageResize plugin #362

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

prosteNoBody
Copy link

Description

Hi,

There have been many discussions and multiple issues raised regarding this topic. A lot of users, including our company, would like to use the ImageResize plugin. While we already utilize image transformations, we have a specific use case where content managers need to make precise, pixel-perfect adjustments to images—such as slightly resizing them. This is not practical to achieve with transformations alone.

Until there is an integrated solution that provides handles for easy image resizing within the Craft ImageTransform plugin, I propose this temporary solution that includes the original ImageResize plugin.

By default, ImageResize is disabled. However, I have introduced a new configuration parameter, enableImageResize: true, which allows developers (who are aware of potential issues with ImageResize) to enable it if needed.

I couldn’t find any specific contribution guidelines, but I’ve done my best to follow best practices. If there are any issues with this PR, I’m happy to address them right away. If this proposal is declined, you can still check out my fork and include it as a private plugin instead of the original one. (Please note that my fork will not receive frequent updates if new features are added to the official craftcms/ckeditor plugin.)

Looking forward to your feedback!

Related issues

#328 #101 #273 #94 #94

@prosteNoBody prosteNoBody force-pushed the feature/328-add-image-resize-opt-in-plugin branch from e97b149 to d351c9a Compare February 6, 2025 14:46
@adrianjean
Copy link

Would love to have this feature as well. Many times we like to let users upload larger images and resize them for that high-dpi effect. Nice to have it as an advanced option so that it's not "easy" to enable, but not impossible.

Right now we have to tell users to go in and modify the HTML width and height properties on the <img> tag.

@marknotton-yello
Copy link

I have a few use cases for this functionality too. I would welcome the introduction of the ImageResize plugin as part of the available utilities. I'd likely need to address any inline styles and their potential impact on my CSP, but just having it in place would be a great start.

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.

3 participants