biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
12 stars 15 forks source link

Images with width*height>16777216 px unsupported on iPad #329

Open dlangenk opened 3 years ago

dlangenk commented 3 years ago

Linked to #250

The image is not shown on IPad anymore with the following warning:

[Warning] Canvas area exceeds the maximum limit (width * height > 16777216). (main.js, line 2)

Problem is tested with Safari and Chrome on IPad 13.x The problem seems to be fixed in newer OpenLayers versions >5.3

mzur commented 3 years ago

Will be fixed with #250.

mzur commented 9 months ago

This shouldn't have been closed, as #250 is not done yet.

dlangenk commented 3 months ago

Problem might not be ol related but it occurs in images.vue:181 (imageWrapper.canvas.getContext('2d').drawImage(img, 0, 0);)

mzur commented 3 months ago

Here: https://github.com/biigle/core/blob/69a5b7aacfc3ceb5b5c729cf3ba3df604158152c/resources/assets/js/annotations/stores/images.vue#L181