I did no explain myself well. Sorry. Old fig files open and I can edit them, but the embedded (png, gif, etc) pictures do not show up. Everything else in the image is ok, and can be edited. Pop up error messages appear, like this one: Errors occurred when reading JPEG file /path/to/file/name.jpg Corrupt JPEG data: premature end of data segment Invalid JPEG file structure: two SOI markers So, the workaround is to remove the jpeg, gif images from xfig files, substituting them by equivalent pdfs. Re-sizing...
I did no explain myself well. Sorry. Old fig files open and I can edit them, but the embedded (png, gif, etc) pictures do not show up. Everything else in the image is ok, and can be edited. Pop up error messages appear, like this one: Errors occurred when reading JPEG file /path/to/file/name.jpg Corrupt JPEG data: premature end of data segment Invalid JPEG file structure: two SOI markers So, the workaround is to remove the jpeg, gif images from xfig files, substituting them by equivalent pdfs. Re-sizing...
Thanks for the tips. The annoying thing is that I am not able to open / edit my old xfig files. I might need to buy a new pc, with ubuntu, to do this work, or use my old mac that works well with an old xfig version.
I have contacted macports, they reproduced the problem but were not able to fix it: https://trac.macports.org/ticket/71818#comment:2
I have used the macports utility to install xfig: sudo port install xfig Is there another straightforward procedure to install xfig in a mac PC?
I recently installed xfig 3.2.9a in a brand new mac pc. When I try to insert a png file, I get the error message: libpng error: invalid distance too far back Errors occurred when reading PNG file /Users/..... / If I try to insert a jpg image, I get the error: Corrupt JPEG data: 4094 extraneous bytes before marker 0xd9 JPEG datastream contains no image Errors occurred when reading JPEG file /Users/..... / Trying another JPEG image, I get the error: Corrupt JPEG data: premature end of data segment...
In this sense, the script I shared with the community looks more general.
I am looking forward for the next release. Will it be ready in 2024? About 30 years ago, when I started using xfig, there was a functionality that I apprreciated: turning on arrow crosses (a vertical and a horizontal line crossing at the cursor position). This helped a lot to align diagram blocs. Don't know why it disappeared. It would be great to have it back.