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

Preview Generator + Memories - the minimal amout of preview files #531

Open
opalek84 opened this issue Dec 17, 2024 · 1 comment
Open

Preview Generator + Memories - the minimal amout of preview files #531

opalek84 opened this issue Dec 17, 2024 · 1 comment

Comments

@opalek84
Copy link

opalek84 commented Dec 17, 2024

Hello,
I use Nextcloud Hub 9 v.30.0.2 + PG 5.7.0 + Memories 7.4.1

What is an idea:
The absolute minimum of previews generated by Preview Generator for Memories APP

What I have:
Two images: A.jpg 1960x4032 and B.jpg 4032x1960 and configuration:
-preview_max_x = preview_max_y = 1024
-squareSizes = '', squareUncroppedSizes ='256', widthSizes='', heightSizes=''

After run generate-all, the Preview Generator will generate:
For A.jpg
125-256.jpg
498-1024-max.jpg

For B.jpg
256-125.jpg
1024-498-max.jpg

What I need:
For A.jpg
256-526.jpg (something like squareUncroppedSizes but as a value for the shorter edge, similarly to widthSizes/heightSizes)
498-1024-max.jpg

For B.jpg
526-256.jpg
1024-498-max.jpg

I know that I can use the widthSizes='256', heightSizes='256', but this will generate 3 files:
125-256.jpg
256-125.jpg
498-1024-max.jpg

Any idea how to achieve this? This is a Bug or Feature?

@st3iny
Copy link
Member

st3iny commented Dec 28, 2024

This is a feature request. We would need a setting for generating squareUncroppedSizes but use it for the shorter edge, as you said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants