osx - Unable to save images with GIMP

08
2014-07
  • noloader

    When I attempt to save an image with GIMP, the save fails and GIMP displays an error message Error while saving <filename>. Could not save image:

    enter image description here

    The issue happens when I right click an image and select Open With ▸ GIMP.app. Then, after editing, I choose Overwirte existing file. Worse, GIMP manages to truncate existing files to 0 (during an overwrite of an existing file), so the original file is lost.

    Upon exiting GIMP, I can save the XCF file.

    The problem started recently (perhaps since the install of the latest GIMP). The previosu two or three years were fine.

    My setup is Mac OS X 10.8.5 (fully patched), and GIMP is 2.8.10 (which I believe is the latest). GIMP is installed in /Applications (just like past versions). I also tried deleting GIMP from the command line and reinstalling it.

    Does anyone know why GIMP cannot save files?

  • Answers
  • DrMoriarty

    The problem is with png only. When gimp saves to jpg, tiff or something else there aren't any error.

    There is a bug for this https://bugs.archlinux.org/task/35363

    I tried the workaround from this link and it helped me

    Menu - Image - Mode - Convert to Color Profile ...

    Then just click "Convert" to convert it to "RGB workspace (sRGB built-in)"

    Now exporting to PNG just works flawlessly.


  • Related Question

    replace/remove background image on gimp 2.6.11
  • Questioner

    how do I remove these images by compiling gimp from source? I can't find any file containing these images.

    alt text


  • Related Answers
  • Tom Wijsman

    They are hiding in /app/widgets/gimpcairo.c at line 140 to the end of the file.

    You should be able to comment out the contents of those functions.

    If you want to get rid of the space where it uses to draw the toolbox one you can look at these lines.