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

Optional optimization #21

Open
DiarQoroviqi opened this issue Feb 22, 2021 · 3 comments
Open

Optional optimization #21

DiarQoroviqi opened this issue Feb 22, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@DiarQoroviqi
Copy link

Is there any way to have something like a popup that asks the user if he want or not to optimize image when uploading?

@nosilver4u
Copy link
Owner

nosilver4u commented Feb 22, 2021

First, I want to point out that Imsanity is not an image optimization plugin. It scales images with the intent to save you disk space. It does not properly encode/compress images. That's what our EWWW Image Optimizer plugin is intended to do.

The good news is that you don't need a popup, you can simply add 'noresize' to the filename of any image that you don't want resized, and it will be skipped by Imsanity.

@DiarQoroviqi
Copy link
Author

Thanks for the reply, yes I saw in the code that if we simply add 'noresize' to the filename it will skip the resize, but is there any way to add confirmation if the user want or not to resize?

@nosilver4u
Copy link
Owner

It may be possible in the future, but it will likely come to our EWWW IO plugin first, as it's been a feature request on there for a while: https://feedback.ewww.io/features/prevent-resizing-of-images-when-using-wp-image-editor-or-uploading-new-images

That said, I haven't looked into this further to even know if such a thing is possible, but we'll find out at some point!

@nosilver4u nosilver4u added the enhancement New feature or request label Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants