facebookincubator / spectrum

A client-side image transcoding library.

Home Page:https://libspectrum.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when resizing to 2x2 and cropping the top left pixel

LoserForLoser opened this issue · comments

38ea595b-5473-4d81-818b-ffa7aff176c7
Maybe it's a BUG?
As shown

Hi @LoserForLoser. Thanks for reporting this issue. I was able to reproduce it locally.

It does look like we might be accessing a region we're not supposed to when resizing to 2x2 and cropping the top left pixel.

I've taken the liberty to rename the issue to make it clearer and re-opening the issue.

does this crash closed?

does this crash closed?

Simulator Screen Shot - iPhone XS Max - 2019-03-18 at 14 44 51
看样子是暂时做了限制,应该是还没改好

Thanks for checking, @LoserForLoser. I don't think we've done anything to fix this crash just yet - would you mind trying with the waterfall-y image and check that it works there as well? It might be somewhat image specific.

Cheers!

Thank you for your reply
I will try it