help! Can't view this svg file

Corel Paint Shop Pro

Moderator: Kathy_9

wkhan69
Posts: 1
Joined: Tue Feb 17, 2015 5:06 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

help! Can't view this svg file

Post by wkhan69 »

Hi all,
I just bought Corel Paint Shop Pro X7 Ultimate. One of the big reasons of choosing Paint Shop Pro was that it could read svg files. Well, just for experimentation purposes, I tried loading an svg file and it came up with an error: "Unable to open file. Please verify that the file is valid". When I try to open this file with a web browser, it opens perfectly, so I'm guessing the file itself is OK. I obtained the file from the web in internet explorer and right-click, save picture as. Here is the original link to the file: http://upload.wikimedia.org/wikipedia/c ... meline.svg

Can anyone tell me if this file is OK, or should I do something different to view it in Paint Shop Pro?

Interesting note: If I try to open the file with PaintShop Pro 32 bit, it brings me to an import screen which shows a pixel size of 2220x10112, which to me sounds possibly right. Then the error pops up. When I open it with the 64 bit version, I get no error, but the pixel size shows 176x800, which sounds very low. As well, the image is completely messed up in the 64bit version. My PC has windows 7 pro 64bit. If svg has vector graphics, how are pixels associated with the file?

Thanks,
Will
LeviFiction
Advisor
Posts: 6831
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: help! Can't view this svg file

Post by LeviFiction »

Okay, something very important about PSP's ability to read SVGs.

PSP can only import SVG files, and convert them to raster graphics. Also PSP's SVG importer, in my experience, only supports small portions of the SVG standard.

If you want to import an SVG and export out a raster image I would suggest a dedicated vector editor like Inkscape and not PSP.
https://levifiction.wordpress.com/
cadudesun
Posts: 92
Joined: Thu Dec 08, 2011 3:03 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Re: help! Can't view this svg file

Post by cadudesun »

Hi,
From the date of this post up to PaintShop Pro 2019, is there any improvement in SVG handling?
I used PSP many years ago and stopped using it because of very bad SVG support at that time.
I'm considering come back to PSP if there are SVG improvements.
Thanks for info!
Cadu
User avatar
ehume
Posts: 940
Joined: Tue Sep 18, 2012 2:05 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte GA-Z87X-UD4H
processor: i7 4770k
ram: 16GB
Video Card: Intel HD4600 [iGPU]
sound_card: no_sound_card
Hard_Drive_Capacity: 512GB+4TB
Monitor/Display Make & Model: Acer KN242HYL
Corel programs: PSP 2018 32b & 64b, AS3 64b, PE5 64b

Re: help! Can't view this svg file

Post by ehume »

I have recently (2 nights ago) opened an SVG file in PSP 2018. The original had a gradient that PSP did NOT replicate. Then I used an old standby -- Inkscape, which is freeware. Inkscape was designed for SVG files.

I have used Inkscape for more than a decade and a half. I started with it to make icons for my Firefox themes. I would export them to PNG and picked them up with PSP7 (not x7) for touchup work. That will tell you how long Inkscape has been around. They improve it, incrementing the version number as they do.

I did to the graphic what I always have done: I saved the SVG file to disk, then opened it in Inkscape, exported the PNG version to disk, then finished the PNG with PSP -- this time PSP 2018.

Based on my recent experience, I would recommend opening any SVG file with Inkscape, not PSP. As a raster editor PSP stands out. As an SVG editor, not so much.

As you can tell, this agrees with LeviFiction.
Had PS3, PSP3; Installed: PSP-4.12, 5.03, 6.02, 7.04 (liked it a lot & used it for years), 8.00, XI, x4.3.0.3, x6.2.0.20, x7.4.0.11, x8.3.0.13, x9.2.0.7; now using PSPx10 (PSP 2018; version 20.2.0.1 x64) on Win 10-64 b2004.
User avatar
Ken Berry
Site Admin
Posts: 22481
Joined: Fri Dec 10, 2004 9:36 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B550M DS3H AC
processor: AMD Ryzen 9 5900X
ram: 32 GB DDR4
Video Card: AMD RX 6600 XT
Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
Location: Levin, New Zealand

Re: help! Can't view this svg file

Post by Ken Berry »

I only have a couple of SVG sample images. Although PSP 2019 lists SVG as one of the formats it can open, it would not open either of my samples. It came up in both cases with a msg saying it could not open the image, and told me to check the file was valid.

FWIW I could open both samples in CorelDRAW 17. I tried saving it in DRAW setting the new image to compatibility with SVG 1.1. That came up with the same error message in PSP 2019. I saved it again with compatibility to SVG 1.0. That opened in PSP, but the image was solid black. Nothing else was visible, and the original had no black in it at all!

I got exactly the same results in PSP 2018.
Ken Berry
User avatar
ehume
Posts: 940
Joined: Tue Sep 18, 2012 2:05 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte GA-Z87X-UD4H
processor: i7 4770k
ram: 16GB
Video Card: Intel HD4600 [iGPU]
sound_card: no_sound_card
Hard_Drive_Capacity: 512GB+4TB
Monitor/Display Make & Model: Acer KN242HYL
Corel programs: PSP 2018 32b & 64b, AS3 64b, PE5 64b

Re: help! Can't view this svg file

Post by ehume »

I tried opening OP's sample in PSP 2018, got a validity error. It opened easily with Inkscape. Since I have Affinity I tried with that too. It was even faster than Inkscape! And this was without converting it for SVG 1.0 to 1.1.
Had PS3, PSP3; Installed: PSP-4.12, 5.03, 6.02, 7.04 (liked it a lot & used it for years), 8.00, XI, x4.3.0.3, x6.2.0.20, x7.4.0.11, x8.3.0.13, x9.2.0.7; now using PSPx10 (PSP 2018; version 20.2.0.1 x64) on Win 10-64 b2004.
LeviFiction
Advisor
Posts: 6831
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: help! Can't view this svg file

Post by LeviFiction »

What level of SVG support do people want in PSP?

Obviously, one that doesn't error out on 90% of all SVG files would be nice. xD But PSP right now can only rasterize an image. It should be possible to use scripts and an external program in order to convert SVGs to PNGs with minimal issues. But are you hoping to simply open and convert an SVG? Or are you hoping to import an SVG as an actual vector file into PSP? That would be harder as PSP ddoesn't support everything that SVG does. So some elements will be lost on import. If you only care about the paths and none of the colors, that might be workable.
https://levifiction.wordpress.com/
cadudesun
Posts: 92
Joined: Thu Dec 08, 2011 3:03 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Re: help! Can't view this svg file

Post by cadudesun »

Many thanks all of you for the replies and feedback!
It seems PSP still struggling with SVGs.
On the other hand, Microsoft Office improved its SVG handling, and it is being pleasant to deal with SVG in PowerPoint.
I'm not comparing PSP with PowerPoint at all. Apples and oranges :)
But just emphasizing SVG is becoming more and more popular, and PSP is being left behind.
PSP isn't a vector dedicated software as Inkscape but as a supposed powerful image editor, it should provide decent SVG support at this time.
Cheers!
AlicatArt
Posts: 18
Joined: Mon Nov 26, 2018 9:31 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: dont know
processor: Intel i7-6700 CPU
ram: 16GB
Video Card: Intel HD Graphics 530
sound_card: Intel Display Audio and Realtek High Def Audio
Hard_Drive_Capacity: 3TB
Monitor/Display Make & Model: Samsung Generic PNP Monitor
Corel programs: PSP X8 X9 2018 2019 Video Studio 2018

Re: help! Can't view this svg file

Post by AlicatArt »

Corel Draw is a Vector Program will that support SVG? or Ai?
User avatar
ehume
Posts: 940
Joined: Tue Sep 18, 2012 2:05 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte GA-Z87X-UD4H
processor: i7 4770k
ram: 16GB
Video Card: Intel HD4600 [iGPU]
sound_card: no_sound_card
Hard_Drive_Capacity: 512GB+4TB
Monitor/Display Make & Model: Acer KN242HYL
Corel programs: PSP 2018 32b & 64b, AS3 64b, PE5 64b

Re: help! Can't view this svg file

Post by ehume »

AlicatArt wrote:Corel Draw is a Vector Program will that support SVG? or Ai?
Really? Get Inkscape for free, then export the png to whatever size you please. Then PSP will edit any png. No need to spend ANY money.
Had PS3, PSP3; Installed: PSP-4.12, 5.03, 6.02, 7.04 (liked it a lot & used it for years), 8.00, XI, x4.3.0.3, x6.2.0.20, x7.4.0.11, x8.3.0.13, x9.2.0.7; now using PSPx10 (PSP 2018; version 20.2.0.1 x64) on Win 10-64 b2004.
AlicatArt
Posts: 18
Joined: Mon Nov 26, 2018 9:31 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: dont know
processor: Intel i7-6700 CPU
ram: 16GB
Video Card: Intel HD Graphics 530
sound_card: Intel Display Audio and Realtek High Def Audio
Hard_Drive_Capacity: 3TB
Monitor/Display Make & Model: Samsung Generic PNP Monitor
Corel programs: PSP X8 X9 2018 2019 Video Studio 2018

Re: help! Can't view this svg file

Post by AlicatArt »

Thanks!!!
LeviFiction
Advisor
Posts: 6831
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: help! Can't view this svg file

Post by LeviFiction »

Gravit Designer, also now owned by Corel, is a free both online and downloadable app for vector design as well. the pro vesion is $99 a year but the lite version is still free. And SVG is supported.
https://levifiction.wordpress.com/
LeviFiction
Advisor
Posts: 6831
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: help! Can't view this svg file

Post by LeviFiction »

I have a new dumb solution to this.

I have made an electron application that reads in SVGs and exports PNGs. I then edited the Nik Script to run my program, and import the resultant PNG. You will have the option of importing as a new image or as a new layer into the current image. The best part, is it seems to work on every SVG I've tried. Including the one linked to by the OP.

The only downside is the electron app is 148MB. It's insane how large this thing is. When I consider the fact that it only converts SVG files to PNGs for importing into PSP, I can't justify the size.

If anyone is interested in trying this method, let me know and I will post it in the scripts section. Otherwise, I'll write it off as an interesting experiment.
https://levifiction.wordpress.com/
User avatar
ehume
Posts: 940
Joined: Tue Sep 18, 2012 2:05 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte GA-Z87X-UD4H
processor: i7 4770k
ram: 16GB
Video Card: Intel HD4600 [iGPU]
sound_card: no_sound_card
Hard_Drive_Capacity: 512GB+4TB
Monitor/Display Make & Model: Acer KN242HYL
Corel programs: PSP 2018 32b & 64b, AS3 64b, PE5 64b

Re: help! Can't view this svg file

Post by ehume »

PSP does an incomplete job on SVG files. Inkscape is free. It is a native SVG app. Its normal raster output is PNG, with transparency preserved. Raster size is completely adjustable.
Had PS3, PSP3; Installed: PSP-4.12, 5.03, 6.02, 7.04 (liked it a lot & used it for years), 8.00, XI, x4.3.0.3, x6.2.0.20, x7.4.0.11, x8.3.0.13, x9.2.0.7; now using PSPx10 (PSP 2018; version 20.2.0.1 x64) on Win 10-64 b2004.
LeviFiction
Advisor
Posts: 6831
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: help! Can't view this svg file

Post by LeviFiction »

xD yes we've been over that before ehume. Inkscape and other vector editors are superior in their handling of SVG files. Some are free, some are not. And almost all support transparent PNG export.

This script and program simply make it easier to do the same thing, transparent PNGs at any size as a new image or layer without having to figure out another program. Just download and run from inside PSP. It uses the chromium web browser to interpret the SVG image and javascript to write it to a file. And PSP scripting to read the result in as either a new image or a layer. The dialog even slightly resembles PSP's.

If you want I can also make a version that uses inkscape's commandline options to do the importing. I'm sure it'll be almost exactly the same. So those with inkscape can just use that, and those without an option can choose which program they want to use.
https://levifiction.wordpress.com/
Post Reply