Opened 16 months ago

Last modified 16 months ago

#71818 assigned defect

xfig: can't add jpeg or png images to drawing

Reported by: ruicortesao Owned by: remkos (Remko Scharroo)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: xfig

Description (last modified by ruicortesao)

Dear All,

I have a macOS Sequoia 15.1.1 and tried to install xfig using the command:

sudo port install xfig

Apparently, the installation was smooth with no error messages. When I call xfig the program also pops up normally. However, if I try to add a picture to my drawing (jpeg, png, etc) I am not able to do it. I get errors like:

libpng error: IDAT: invalid distance too far back
corrupt JPEG data: 4092 extraneous bytes before marker 0xd3

I tried inserting several images without success.

I am only able to insert pdf images.

My old mac has an old xfig version, which works without problems.

Any thoughts about these issues?

Cheers.

Change History (7)

comment:1 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to remkos
Port: xfig added
Status: newassigned
Summary: xfig installation issuesxfig: can't add jpeg or png images to drawing

Which version of the xfig port? (port -v installed xfig)

comment:2 Changed 16 months ago by ruicortesao

port -v installed xfig
The following ports are currently installed:
  xfig @3.2.9a_0 (active) requested_variants='' platform='darwin 24' archs='arm64' date='2025-01-12T10:34:47+0000'
Last edited 16 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 16 months ago by remkos (Remko Scharroo)

I can confirm the error when including a PNG image. I get the same message. Let me have a look if this may be an upstream issue or something that was introduced with the latest port.

comment:4 Changed 16 months ago by remkos (Remko Scharroo)

Follow up on the previous: I went back to the previous version of xfig (3.2.9) that we had in macports recently. There the same error pops up. I do not know if this is directly a problem with xfig, or its interface with the particular versions of libpng and libjpeg that macports is using. To be worked on.

comment:5 Changed 16 months ago by ruicortesao

Thanks for the update. Hope this problem can be fixed.

comment:6 Changed 16 months ago by ruicortesao

Description: modified (diff)

comment:7 Changed 16 months ago by ruicortesao

Is there a way to fix this problem?

Note: See TracTickets for help on using tickets.