Script - Export SVG v0.2a

Moderator: Kathy_9

LeviFiction
Advisor
Posts: 6472
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Script - Export SVG v0.2a

Post by LeviFiction »

Script Name: svgExport
Github Repository: https://github.com/LeviFiction/PSP2SVG
Download Link: https://github.com/LeviFiction/PSP2SVG/ ... master.zip
Compatibility: 9 - 2022
Requirements: Place in Scripts-Trusted Folder
Description:
This script attempts to make up for a distinct lack of functionality in PSP. Exporting vectors to a common modern format. At the moment only the most basic elements are supported with hopes to add more functionality as time goes on. This script goes through the whole image and exports only Vector layers. Other layer types are ignored.

I've used this script to make icons for Android Apps and websites. I've tried it with various complex lists of objects and gradients but I haven't tested everything. So let me know if you experience any problems.

Supported Features:
  • Paths
  • Rectangles
  • Ellipses
  • Gradients
  • Solid colors
  • Basic Line Styles
  • Layer Opacity
Known limitations:
1 - Text and Symmetric Shapes are converted to Path objects.
2 - Line Styles don't support PSP end caps. (might be able to work around but not right now)
3 - Line Style stroke size and gaps don't match in SVG to how PSP displays them.
4 - Patterns and textures are not supported yet (textures probably won't be but patterns need to be embedded which makes files large)
5 - Layer Styles are not implemented
6 - Blend modes are not implemented

History
[*] 9-11-2022 - Fixed bug preventing export if fill or stroke were transparent.
LeviFiction
Advisor
Posts: 6472
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Script - Export SVG v0.2a

Post by LeviFiction »

Script would error out if the stroke or fill was set to transparent. Thankfully the fix was simple. Script has been updated, and so far seems to still b working just fine for simple vectors. I've only been using it to export vectors for use in websites, especially those made from the Selection To Path script, so it's not getting a thorough evaluation.