viliusle / miniPaint

online image editor
http://viliusle.github.io/miniPaint/
Other
2.74k stars 633 forks source link

Can it support images of size in 4-5 GBs? #335

Closed pdgupta84 closed 1 year ago

pdgupta84 commented 2 years ago

Can I upload & edit a large image of size varying in GBs? Also will I be able to zoom in & zoom out to that image to the pixel level?

viliusle commented 2 years ago

miniPaint does not check any limits, but undo feature will not work if you load too much data. I tested minipaint with 150 MB JPG image, it works, but slowly.

I am almost sure that if you load few GB image, it will crash because of exceeding limits or will take lots of time to load on computer with lots of memory. You can always try and let us know. But I personally would try to use desktop apps to edit such big images.

viliusle commented 2 years ago

And it is nothing can be done to optimize even more, because miniPaint is already optimized to save memory as much as possible.

pdgupta84 commented 2 years ago

Thanks for the inputs.

pdgupta84 commented 2 years ago

Hi, Today I tried opening a 40 MB photo on minipaint. But it gave me error. You had mentioned that you were able to open a 150 MB photo (though it was slow). So I was curious to know how you managed to open the same? Any setting that we need to take care of? Please let me know. Thanks.

viliusle commented 2 years ago

Can you share that image? I image if it is few colors PNG with very big dimensions, miniPaint could have problems. OR maybe wrong format? it should open 40 MB images without big issues.

p.s. there are no settings for that, default miniPaint must open such files.

pdgupta84 commented 2 years ago

You can try this file: https://effigis.com/wp-content/themes/effigis_2014/img/GeoEye_GeoEye1_50cm_8bit_RGB_DRA_Mining_2009FEB14_8bits_sub_r_15.jpg It does not works both ways, either by specifying URL or by downloading & specifying its local path.

viliusle commented 2 years ago

11 I can open and edit it.

But it gave me error

What errors? how you are opening it? And which browser & version?

pdgupta84 commented 2 years ago

Here is the screenshot of error. error I'm using option File -> Open -> Open URL & giving the URL https://effigis.com/wp-content/themes/effigis_2014/img/GeoEye_GeoEye1_50cm_8bit_RGB_DRA_Mining_2009FEB14_8bits_sub_r_15.jpg in there.

viliusle commented 2 years ago

You get CORS (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) error, basically effigis.com server does not allow to take resources from its domain using JavaScript. You should save that image on your computer and open it locally.