I managed to generate a PNG image with a fractal.
The image is 65,536 pixels high and 65,536 pixels wide. It’s too big to be decoded into memory and displayed. It has probably a lot of unused space near the borders and I want to trim it to significantly reduce its area.
I tried GIMP and GraphicsMagick, but GIMP froze my computer and GraphicsMagick failed to allocate enough memory for the image.
I use Linux and I have 16GB of RAM. The compressed image is 6.2MB in size.
Can I trim the borders without loading the image fully into memory?
FWIW, in the end I used my school's server but I still want to know the answer.