nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.98k stars 883 forks source link

5.4.0: image preview fixed to square #2971

Closed bcutter closed 1 month ago

bcutter commented 4 months ago

Since 5.4.0 the preview of HEIC files is only shown as square/quadratic. That of course hides parts of the image making the preview useless in many cases.

Random example:

1) Full image image

2) Nextcloud iOS 5.4.0 preview image

3) Nextcloud iOS full size view image

rightsaidfred99 commented 4 months ago

For me, it happens with regular jpegs

marinofaggiana commented 4 months ago

@bcutter your example is incomprehensible :D bette choice another image

bcutter commented 4 months ago

The image itself is irrelevant. You should get the point with the description only. Otherwise... you could just try it on your own I guess?

marinofaggiana commented 4 months ago

I don't understand whats do you mean for description ?

marinofaggiana commented 4 months ago

the preview image is requested with the dimensions (H-W) resized based on the values ​​given by the metadata, if they are not there (probably they are not given for HEIC files) I cannot know the size to request.

bcutter commented 4 months ago

Did you read the issue description?

In basic words: the image preview only shows this (square) and cuts other parts.

image

bcutter commented 4 months ago

the preview image is requested with the dimensions (H-W) resized based on the values ​​given by the metadata, if they are not there (probably they are not given for HEIC files) I cannot know the size to request.

Well, something changed compared to the version before 5.4.0.

This behavior is definitely new and introduced with 5.4.0.

Previews were working fine before, now they are broken.

bcutter commented 4 months ago

Here's a way better example image (widescreen).

Upload it and check the preview:

image

marinofaggiana commented 4 months ago

the preview image is requested with the dimensions (H-W) resized based on the values ​​given by the metadata, if they are not there (probably they are not given for HEIC files) I cannot know the size to request.

Well, something changed compared to the version before 5.4.0.

This behavior is definitely new and introduced with 5.4.0.

Previews were working fine before, now they are broken.

mm this happen ONLY with HEIC ? (for make some test)

bcutter commented 4 months ago

No, @rightsaidfred99 is right: also for JPEGs (like the last widescreen one I provided before).

rightsaidfred99 commented 4 months ago

jsut on the ios app too, the web interface is fine

rightsaidfred99 commented 4 months ago

Nextcloud Hub 8 (29.0.3) It's just the iOS update from today or yesterday that broke things. Server hasn't updated for a few weeks