ios icon indicating copy to clipboard operation
ios copied to clipboard

5.4.0: image preview fixed to square

Open bcutter opened this issue 1 year ago • 12 comments

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.

  • It does not affect PNG or other file types.

  • Once the full size of the image is loaded (manually), the HEIC is shown fully (in original aspect).

Random example:

  1. Full image image

  2. Nextcloud iOS 5.4.0 preview image

  3. Nextcloud iOS full size view image

bcutter avatar Jul 02 '24 08:07 bcutter

For me, it happens with regular jpegs

rightsaidfred99 avatar Jul 03 '24 00:07 rightsaidfred99

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

marinofaggiana avatar Jul 03 '24 09:07 marinofaggiana

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?

bcutter avatar Jul 03 '24 09:07 bcutter

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

marinofaggiana avatar Jul 03 '24 09:07 marinofaggiana

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.

marinofaggiana avatar Jul 03 '24 09:07 marinofaggiana

Did you read the issue description?

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

image

bcutter avatar Jul 03 '24 09:07 bcutter

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 avatar Jul 03 '24 09:07 bcutter

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

Upload it and check the preview:

image

bcutter avatar Jul 03 '24 09:07 bcutter

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)

marinofaggiana avatar Jul 03 '24 10:07 marinofaggiana

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

bcutter avatar Jul 03 '24 10:07 bcutter

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

rightsaidfred99 avatar Jul 03 '24 10:07 rightsaidfred99

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

rightsaidfred99 avatar Jul 03 '24 11:07 rightsaidfred99