Could sharpen become a part of the image extension? #941
-
Hello! As I have described here, I change the image extension for myself so that the images are sharpened. Unfortunately, these changes are lost when the image extension is updated. You could activate the function »sharpen« via This is what my code looks like:
and
and
What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
What I am going to say is not directely related to @PetersOtto's proposal, but the purpose is similar. Some time ago I read an article about HDPI displays (unfortunately I cannot find it anymore) which suggested a very simple trick in order to have better JPG images without increasing the filesize: double the dimensions of the image (and let the browser resize it) and increase the compression. This is a quick example: https://mondodomani.org/img-test/img-test.html Actually the second image (which has a slightly smaller filesize!) seems to me in a HDPI display clearly better than the first. This would imply a simple modification of the logic of image.php. Perhaps this is another possibility to evaluate? Edit: this is not the article I read, but the same trick is suggested: https://web.dev/articles/easy-high-dpi-images |
Beta Was this translation helpful? Give feedback.
-
When I ask myself, do I need this, do I want this? My answer would probably be no. I would lean slightly towards putting image editing functionality in its own extension. For example in a new imagefilter extension for uploaded images. Maybe with different filters for sharpening and softening photos? Maybe with automatic adjustments of color and contrast? Maybe with selfie enhancements... there are many possibilities. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your feedback! What I currently miss about the image extension is the flexibility. It would be great to have the following points. (In my opinion, it is just a discussion 😊)
Maybe it would possible to add an interface to the image extension? (... |
Beta Was this translation helpful? Give feedback.
It depends on what you want to do. The image extension was created to display images with Markdown. I personally think we should not support everything that's technical possible. Product design is partially about good technology, partially about finding what's good enough. Whenever a small solution handles 90% and a big solution handles 100%, but has the cost of additional complexity, then it's worth to reconsider the additional effort. Sometimes less is more. Or as Dieter Rams describes good design, less but better. [1] [2]
The good thing is that there is a modular extension system and we don't have to put everything into one image extension. My suggestion would be to make your own "imag…