ng2-img-max icon indicating copy to clipboard operation
ng2-img-max copied to clipboard

Not working on mobile

Open hasanhameed07 opened this issue 7 years ago • 9 comments

My simple implementation using resize method is making the browser crash on android. Is this tested on mobile? Any memory limitations?

hasanhameed07 avatar Jan 09 '18 07:01 hasanhameed07

Hey @hasanhameed07, this could actually take up quite some memory, yes...

bergben avatar Jan 09 '18 10:01 bergben

I'm having the same issue. Any way to fix that?

Error: Out of bounds memory access

MatissJanis avatar Jan 12 '18 07:01 MatissJanis

Same issue here. Below error occurs when calling resizeImage on iOS 11.2.2 Safari.

Error: Out of bounds memory access (evaluating 'fn(filtersX_offset, filtersY_offset, tmp_offset, srcW, srcH, destW, destH)')

harlig avatar Jan 16 '18 07:01 harlig

Same problem here. It looks like a regression because it used to work without problems. It works fine in Safari for macOS, but fails withe the out of bounds memory access error on Safari on iOS 11.2.2.

It looks like it has to do with memory usage. If I reduce the compression amount, then everything works again.

seb-z avatar Jan 19 '18 19:01 seb-z

Same here, any fix on this?

jobnte avatar Feb 28 '18 04:02 jobnte

Other library are experiencing this too https://github.com/nodeca/pica/issues/124 I think a patch for Spectre has created this issue in libraries that worked before with no issues

devakone avatar Mar 04 '18 23:03 devakone

Any solution?

shubhpy avatar Jun 20 '18 09:06 shubhpy

Tested, and no problem with Xiaomi MIX2S (Android 8.0), iPhone 8 Plus & iPhone X (both iOS12). using "ng2-img-max": "2.1.18"

acliyang avatar Oct 18 '18 07:10 acliyang

still an issue. tested it on different android phones and it doesnt seem to compress.

alexw92 avatar Jun 18 '23 21:06 alexw92