Jump to content
You must now use your email address to sign in [click for more info] ×

SVG embeds frequently "lost" or corrupted


Recommended Posts

Some linked SVG files are lost when the afpub is opened again later. The SVG itself and the afpub are unchanged from when the image was placed (I use git file tracking, so I'm confident that both files are unchanged) and yet the SVG is not listed in the resource manager, despite it actually rendering when I first open the afpub:

image.png.fb1e4a363f6cac0392e57154134aa62a.png

Changing to another page and back again, the image disappears:

image.png.03c2e2c4c5b2438069d25a1f11de983c.png

The outline shows that the image is still there and linked:

image.png.5448e9a2c881f84036ba759ec1e95d21.png

The transform panel for it shows an uneditable width and height of 0:

image.png.55198e390656e547ad7f2a6b324a2876.png

While the top bar shows what looks like more or less correct information about the linked image, except for the 0x0 pixels:

image.png.c8260b3da308142409bff5c3b959cd3a.png

Adjusting the DPI or scale appears to have no effect at all.

Replacing the document with the same image results in wild DPI numbers that will not change regardless of what I set them to, it always resets to this negative number:

image.png.1310fcb8783129c466ec76712597a76c.png

The only way to "fix" this that I've found is to completely delete the placed image control itself, then place the image again in the document. This works until it eventually breaks again at some point, and has to be "fixed" again.

Not all linked SVG images do this, only some of them. There seems to be no way to predict which images will do this - it appears to happen at random.

Edited by Luke Graybill
linked, not embedded
Link to comment
Share on other sites

I was having the same problem with my SVGs from Designer 2.0, I fixed this by exporting them from Designer 2.0 as curves which is unchecked by default. Maybe the export by default exports them as raster images which seems to confuse Publisher 2.0? I noticed when I would reopen the file after placing them that Publisher 2.0 was showing them not as vectors but as low-resolution images. Once I made them curves from Designer 2.0 it seems to be working correctly. 

I also noticed it didn't like my font in Publisher if I tried to convert it to curves in Publisher the text wouldn't convert and just disappeared. So, my guess would be this entire issue is tied to Publisher not liking the fonts? I've had many problems in past with Publisher 1 not liking certain fonts.

image.jpeg.6099743ef3d5e5d8154361cbdc96c0ce.jpeg

  • Windows 11
  • Hardware Acceleration: On
  • MSI GF75 Thin 10UEK-048 Gaming Laptop - 17.3" 144 Hz IPS - Intel Core i7-10750H CPU @ 2.60GHz - NVIDIA GeForce RTX 3060 Laptop GPU 6 GB GDDR6 - 64 GB 3200Mhz DDR4 Memory - 512 GB NVMe SSD + 2 TB WD Blue SSD
  • Dual Display: XPPen Artist 22E Pro 21.5 inch 1080p

David Hyatt
ATSOTC Magazine Editor

Link to comment
Share on other sites

Gotta export the text as curves even though your file was already curves for it not to break in Apub until they fix it.

image.jpeg.bfd371581554ee1438c4e1009dc043db.jpeg

  • Windows 11
  • Hardware Acceleration: On
  • MSI GF75 Thin 10UEK-048 Gaming Laptop - 17.3" 144 Hz IPS - Intel Core i7-10750H CPU @ 2.60GHz - NVIDIA GeForce RTX 3060 Laptop GPU 6 GB GDDR6 - 64 GB 3200Mhz DDR4 Memory - 512 GB NVMe SSD + 2 TB WD Blue SSD
  • Dual Display: XPPen Artist 22E Pro 21.5 inch 1080p

David Hyatt
ATSOTC Magazine Editor

Link to comment
Share on other sites

Hello everyone,
I had the same problem. Exporting the text as curves did not help in my case either.
The only (and for me fastest) solution was to change the "Image placement" value from "Prefer Linked" to "Prefer Embedded". You can find this dropdown when creating a new file in Affinity Publisher.
 

Link to comment
Share on other sites

On 11/27/2022 at 4:33 AM, D. Bakel said:

I can confirm this behavior. I had this problem also with .PSD files. Seems to me it happens to files with layer structures.

This is an interesting insight for PSD files, but unfortunately it doesn't seem to matter with SVG how many layers there are for it to trigger this bug.

8 hours ago, Anni_Wi said:

Hello everyone,
I had the same problem. Exporting the text as curves did not help in my case either.
The only (and for me fastest) solution was to change the "Image placement" value from "Prefer Linked" to "Prefer Embedded". You can find this dropdown when creating a new file in Affinity Publisher.
 

Yes, for me, exporting as curves doesn't help. One of the files I routinely have this problem with is already only curves.

The only solution I've found is, as @Anni_Wimentions, to use embed instead of linking. Obviously that's subpar in a large publication that relies on a lot of external resources, but at least it seems like a workaround for now.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.