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
Imaginary url-signature-key missing and webp and avif support #37993
Comments
https://github.com/nextcloud/server/blob/master/lib/private/Preview/Generator.php And WebP works, although this solution is not clean, it is very easy to implement. |
Feel free to create a PR for discussion |
I have another question, where can I find the instructions or a template on how to develop Nextcloud apps? In the ticket, I had an idea about HQ previews and displaying images in their original quality on demand. The HQ previews should be temporarily created with a parameter for the preview generator, and optionally stored in a cache folder. This could be helpful for users with limited storage but sufficient bandwidth or computing power. This means that when the user clicks on an eye icon in the photo view, a drop-down menu opens up. Here, the user can choose between HQ preview and original image. These functions should be configurable later through the app's configuration. For HQ previews, the user can set the maximum resolution and file size. The option to use an HQ preview cache, which retains the most recently created previews and discards rarely used ones once a certain memory or count threshold is reached, can also be enabled. For displaying original images, the user can choose whether they should be automatically loaded when the preview reaches a desired size. However, I think it would be easier to let the user set this in their profile with a slider. As you can see, it is a big idea and probably only interesting for users with limited storage who sometimes need near-lossless or full-quality images. Therefore, my question is whether such an idea is possible as an app? I also have further ideas for the photo app, I believe it is another department, but this problem also affects the regular file browser. Update: Update: https://github.com/nextcloud/server/tree/master/apps/files |
https://docs.nextcloud.com/server/latest/developer_manual/app_development/index.html Also you might want to pop onto: https://help.nextcloud.com/c/dev/11 |
Fixed in #38032 & #38365 |
https://docs.nextcloud.com/server/24/admin_manual/installation/server_tuning.html
Would it maybe be possible to add a key for the API in the nextcloud?
-url-signature-key secret
Currently I have solved this with iptables.
But it would be nice if it were easier to protect against unauthorized access.
I have another idea too.
Generating WepP images via Imaginary would probably be significantly more performant.
I know that there is still no official WebP support for the PHP ImageMagick.
But I think Imaginary is perfect for this, I can generate very small images with great quality on a second server without it greatly affecting the performance of my Nextcloud.
Additional Avif support would of course be even nicer.
I mean Imaginary is a very underused option and can save a lot of memory and JPG can be replaced especially for thumbnails.
#13552
And yes, I know this topic has been discussed many times, but I think it's different with imaginary.
What I also find a pity about Nextcloud is that there is no button with which I can display the original image without downloading it.
Or maybe a short-term stored version (cache) that can be set, for example with 1080p and 90% quality, is supposed to save memory at the expense of performance.
I don't have much memory and can therefore only create JPG images with 30% quality and a maximum of 1024px.
So if you have more than 17K images, that's a problem as far as storage is concerned.
And with WebP I might even be able to specify a target value and not have to worry so much about the quality.
That might be a few ideas to make Nextcloud even better or more usable, because the way it is today, it can't keep up with Google Photos.
PHP alone is simply unsuitable and requires an external service here and it definitely has the ability to create the images quickly enough if there is enough power and I think with Imaginary and a few adjustments Nextcloud can finally keep up with Google without too much storage space waste.
I also have to say that my cell phone gallery app urgently needs a new version, which smears when scrolling and also when too many pictures have to be compared when uploading.
But uploading has gotten better, but you can't show any warnings, otherwise it just spams and crashes.
The text was updated successfully, but these errors were encountered: