Ad a own Generator and can handle with WebP and AVIF preview.#1008
Ad a own Generator and can handle with WebP and AVIF preview.#1008marcelklehr merged 2 commits intonextcloud:mainfrom
Conversation
Signed-off-by: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com>
|
Hey! I'm sorry for the delay. This looks really good! Just approved CI so let's see what the tests say :) |
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
Awesome! I refactored it a little but seems to work like a charm. Thank you 💙 |
|
Hello there, We hope that the reviewing process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR reviewing process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! |
Title: Improved AI Input Image Generation with GD
Description:
This change enables the generation of custom input images for AI with better quality using GD for supported image formats. This results in improved recognition accuracy.
Configuration Options:
If the image format is not supported, the standard preview generator is used. Additionally, if the standard preview generator produces a WebP or AVIF image format that the AI cannot process, this image is converted to JPEG using GD.
Considering the known issues with WebP previews, I have created a patch to address these problems and enhance recognition quality:
Please refer to the discussion that led to this Pull Request for more context and insights: #996
The code has been tested on my Nextcloud instance. While I acknowledge that this solution may not be perfect, I couldn't find a better one in a short time. Any suggestions for improvement are highly welcome.