Activity for Peter Smith

  • Peter Smith Peter Smith modified a comment on discussion General Discussion

    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...

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    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...

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    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.

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    I have contacted macports, they reproduced the problem but were not able to fix it: https://trac.macports.org/ticket/71818#comment:2

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    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?

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    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...

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    In this sense, the script I shared with the community looks more general.

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    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.

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    I had problems with the commands you suggested. fig2dev went well. But when I ran lualatex I got: .... ! error: (file path.to.file/name.tiff) (pdf backend): internal error unknown image type ! ==> Fatal error occurred, no output PDF file produced!% the script I suggested worked great for the same xfig file, which has latex math, a tiff image and arrows and squares.

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    Dear All, I have been using xfig for ages, but unfortunately, with my new Mac PC, I am not able to insert figures. Hope this problem can be fixed soon. Let me share with you a script (see attachment) that converts xfig with latex stuff inside into a clean pdf image. Enjoy! The synthax is: ./xfig2pdf file_name.fig and it generates the equivalent file_name.pdf

  • Peter Smith Peter Smith posted a comment on discussion General Discussion

    Hello everyone, I recently installed xfig on my OS X system, with the utility macports. I am not able to insert figures in xfig. For instance, if I try to insert a png image, I get the pop-up error message: Incomplete Picture Object object at line 11. Incorrect object code at line 13. libpng error: IDAT: invalid distance too far back Errors occured when reading PNG file /path.to.file/name.png I tried other images with different formats (jpeg) with a similar error. Any thoughts on this issue? Thanks,...

1
MongoDB Logo MongoDB