Picture.OpenVector - SVGs Fine on AppleSilicon Mac - not fine on Intel Mac

Hey everyone,

Can someone confirm something I’m seeing in the Example Application (Examples/Graphics/Saving and Loading Vector Graphics)

When running the example on my M1 Mac a simple SVG file loads perfectly fine. However when I run the same Example Application on my Intel Mac it fails to display anything.

The M1 Mac where the openvector is working is running Ventura.
The Intel Mac where the openvector is not working is running Monterey.

I’m trying to work out if it is a Monterey issue or a Intel v AppleSilicon issue.

.pict files seem to be working fine so I’m more than able to use instead… SVG’s are so much nicer for what I’m doing however.


Intel Ventura:

simple SVG

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"

<svg xmlns="http://www.w3.org/2000/svg"
 width="250" height="250">
  <rect x="40" y="30" width="150" height="150" rx="20"
      style="fill:#ff0000; stroke:#000000;stroke-width:2px;" />
  <rect x="70" y="60" width="150" height="150" rx="40"
      style="fill:#0000ff; stroke:#000000; stroke-width:2px;
      fill-opacity:0.7;" />

I guess is a Monterey issue.

1 Like

Thanks AlbertoD!

1 Like

Jeremy raised a case for this: https://tracker.xojo.com/xojoinc/xojo/-/issues/72153

1 Like

This is misleading and let people believe ypu used a .pict (extension) file.
PICT files are deprecated on macOS since… years ago (they were usually - but not always - vector images).

In your case, please use .svg (if I understand correctly this thread):

Finder icon of the image created using Alberto definition text (above) saved with TextEdit with a .svg extension.

I wish to use SVG’s they are not however loading/rendering on MacOS Monterey.

myPicture = myPicture.Openvector(file.svg [as a folderitem]) returns Nil when ran on MacOS Monterey.

My mentioning of .pict was just me stating a workaround for the time-being. :slightly_smiling_face:



Both MBS & Einhuger have plugins that can rasterise SVGs into a picture.