You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to process an image (PNG) with a transparent background. It's 96x96px but only a 40x40px area in the middle has content, starting size is 407B. So I'm trying to crop by doing .crop(28, 28, 40, 40) and then writing the file. It crops fine but the written file now has a size of ~2kB. I also tried just reading and writing the file (i.e. no modifications) and it still ended up being ~2kB in size.
I have also attempted to delete all the metadata in the file and the result is still ~2kB.
Any idea as to what is going on, and/or how to fix it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to process an image (PNG) with a transparent background. It's 96x96px but only a 40x40px area in the middle has content, starting size is 407B. So I'm trying to crop by doing
.crop(28, 28, 40, 40)
and then writing the file. It crops fine but the written file now has a size of ~2kB. I also tried just reading and writing the file (i.e. no modifications) and it still ended up being ~2kB in size.I have also attempted to delete all the metadata in the file and the result is still ~2kB.
Any idea as to what is going on, and/or how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions