.PSPIMAGE Files are 300mb+ with few layers - why/help?

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
notyou87
Posts: 26
Joined: Wed Jun 27, 2018 3:45 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
ram: 8gb
Corel programs: Paintshop Pro 2018

.PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by notyou87 »

Hello.

Windows 8.1
PSP 2019

(Any additional info I have not given and you need, don't hesitate to ask please)

I was noticing today that opening and saving a .pspimage was taking a very long time and using a lot of processing power on my PC (2gb - 4gb) and even crashed my PC a few times.
Originally I had about 20 layers. Mostly vectors but the canvas size was/is 500x500px.
The vector layers were simply shapes for a logo - lets say the letter T and S. Below those I did also have some textures. I thought it was the textures being huge, because I think they are about 3000px or 5000px so I completely deleted those and saved a copy of the .pspimage. It went from about 345mb to 342mb.. I then deleted al other layers except the main logo one. Again it got rid of only a small amount and it's still over 330mb.

I have never had this problem in previous versions of Paintshop Pro - this problem is in 2019 but if I open and save the same files as copies in 2018, they are still this huge size.
Is it some specific setting/option I have chosen somehow without knowing/being aware of?


in total it has done this with 2 images - both logos and with both they are simple looking. They also both had me merge vector layers to combine them, and also to cut out..

I am at a complete loss as to what this could be. Any ideas on what to check/change will be really appreciated. I love designing and having my entire PC crash is not fun :(


Edit:
Oh also I forgot I have a 3rd image. It's a 900x2000px image that is also 340mb as a pspimage. It's one layer. It was a stock image that I used blur on, and a lot of distortion effects til I got a nice abstract shape, this is the image as a png:
https://i.imgur.com/3ZO68zC.png

There are NO excess images OUTSIDE of layers on any of the images/layers which could be adding.. i am at a complete loss but I bet it's something extremely obviously
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: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by LeviFiction »

EDIT: I'm not sure.

I've seen the edit history of an image add several MB to an image before but ultimately that's just text. And you'd have to do a huge amount of editing to get 300MB with of text.

Check your image save settings. Go to File -> Save As

Then click on the "Options" button in the bottom right corner. You should get the PSPImage options, is it set to "Uncompressed"?

Uncompressed that PNG image would be around 5MB per layer. A 500x500px image however, would only be 1MB per layer tops.

Do you have google drive or something where you could upload an example of such a huge image?
https://levifiction.wordpress.com/
notyou87
Posts: 26
Joined: Wed Jun 27, 2018 3:45 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
ram: 8gb
Corel programs: Paintshop Pro 2018

Re: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by notyou87 »

LeviFiction wrote:It's probably the edit history. PSPImage files save with a complete record of every command and edit you ran on the image for every session. This, especially with heavily edited images, can add up pretty quickly. Especially since it's written in XML format which can sometimes triple the length of even simple characters like tabs and carriage returns. Oh and paint brushes are a beast, for every single point the brush moves PSP adds a huge line of text. For exmaple "(App.Constants.PathEntryInterpretation.Absolute,(614.5,1454.5),3016)" For every single point. This can quickly add up to a lot. Vectors are the same.

I saved the example PNG you gave as PSPImage uncompressed and it only increased the size to 5MB from 1MB. Then I saved it with some edits and the history increased the size very quickly to 15MB.

I'm actually not sure how to get rid of it. At least as far as PSPImage files are concerned.

But you can turn it off so it never happens again. It won't delete the current edit history but it'll stop PSP from adding the edit history to your images.

Go to File -> Preferences -> General Program Preferences

Select "Miscellaneous" on the left, and you'll see a checkbox for adding the edit history to to metadata for JPGs, PSPIMAGEs, and TIFFs. Just deselect that and no new images will be saved with the history.
This has to be it. I have turned that setting off, thanks.
I will let you know if it has worked when I create something else.

If you figure out, or anyone else knows how to delete the current history so it stops being 300mb, that would be amazing. i tried the history but as you can guess it was just the history from the time I just opened it :(


I have found in Image Information (shift+I) it has Edit History Log and you can SAVE it, but no option to delete.
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: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by LeviFiction »

I changed my mind and tried to correct myself. See my edit above.

That 15MB was because I forgot to compress my image again. The text only took up 29kb which is far more reasonable
https://levifiction.wordpress.com/
notyou87
Posts: 26
Joined: Wed Jun 27, 2018 3:45 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
ram: 8gb
Corel programs: Paintshop Pro 2018

Re: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by notyou87 »

LeviFiction wrote:I changed my mind and tried to correct myself. See my edit above.

That 15MB was because I forgot to compress my image again. The text only took up 29kb which is far more reasonable

I will upload that abstract image that I did a lot of distorted effects + blur on.
It's over 300mb and my upload is so slow so bare with me


Edit:
Here we go 168mb because I zipped it:
https://drive.google.com/open?id=1RW_5I ... dy2nqr_l7G
User avatar
hartpaul
Advisor
Posts: 2893
Joined: Tue Mar 20, 2012 3:38 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK P7P55D STRIX B240F GAMING
processor: IntelCore i7 7700 3.60 Ghz
ram: 8 Gb
Video Card: Nvidia GeForce GTX 1050
sound_card: Nvidia High Definition Audio
Hard_Drive_Capacity: 1000 Gb
Monitor/Display Make & Model: AOC
Corel programs: PSP8,X2 to X9,2018,2019,2020
Location: Australia

Re: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by hartpaul »

Ok I downloaded and extracted the file and it was 340 MB
I loaded it into PSP 2019 and then saved it as a pspimage with a different name.
That brought it down to 2MB
I also saved it as a png file and that was just over 1 MB
I reloaded that png and saved it as a pspimage file and that kept it at just over 1 MB.
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
notyou87
Posts: 26
Joined: Wed Jun 27, 2018 3:45 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
ram: 8gb
Corel programs: Paintshop Pro 2018

Re: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by notyou87 »

hartpaul wrote:Ok I downloaded and extracted the file and it was 340 MB
I loaded it into PSP 2019 and then saved it as a pspimage with a different name.
That brought it down to 2MB
I also saved it as a png file and that was just over 1 MB
I reloaded that png and saved it as a pspimage file and that kept it at just over 1 MB.

I will try this, but I am unsure what to maybe do to prevent this in the future - it has happened to 3 image files so far all with different names.
Not sure what the cause is..

I will try what you did now to see if it does it for me in 2019, if not I will try in 2018.


Edit:
Nope same size for me regardless.

2019: f12 or Save As - newname2019
2019 ctrl+f12 - Save Copy As - newname2019-copy

334mb still

And the exact same in 2018 to- similar name just using the numbers 2018 instead of 2019
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: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by LeviFiction »

HOLY.....I was right. That's an odd feeling. Usually when I do wild speculations I'm not even close. xD So I saved out your edit history, the resulting text file was 295MB. Hartpaul, what compatibility version of PSP do you save under for PSPImage? If I change the compatibility from X8-2019 down to X3 the history is not saved. But if I save X4-X7 it does show up.

notyou87, try saving for X3 compatiblity.

1) File -> Save As
2) Choose PSPImage as the format
3) Hit the "Options" button in the bottom right corner of the save as dialog
4) Change compatibility dropown to a minimum of X3.
5) Give it a new name.

Do you have a smaller image now?
https://levifiction.wordpress.com/
User avatar
hartpaul
Advisor
Posts: 2893
Joined: Tue Mar 20, 2012 3:38 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK P7P55D STRIX B240F GAMING
processor: IntelCore i7 7700 3.60 Ghz
ram: 8 Gb
Video Card: Nvidia GeForce GTX 1050
sound_card: Nvidia High Definition Audio
Hard_Drive_Capacity: 1000 Gb
Monitor/Display Make & Model: AOC
Corel programs: PSP8,X2 to X9,2018,2019,2020
Location: Australia

Re: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by hartpaul »

Strange . Something has now changed . The image takes a long time to load . and now when I try and save it as a png it gives a
Microsoft Visual C++ Runtime Library

Runtime Error
R6025 - pure function call

and then closes PSP 2019.
Was saving at the default settings. Changed to X2 compatibility and it dropped to 2 MB
So saving as an earlier compatible file strips that extra info away and allows normal saving again at least for a single layer.
Last edited by hartpaul on Sat Aug 18, 2018 1:03 am, edited 1 time in total.
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
notyou87
Posts: 26
Joined: Wed Jun 27, 2018 3:45 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
ram: 8gb
Corel programs: Paintshop Pro 2018

Re: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by notyou87 »

LeviFiction wrote:HOLY.....I was right. That's an odd feeling. Usually when I do wild speculations I'm not even close. xD So I saved out your edit history, the resulting text file was 295MB. Hartpaul, what compatibility version of PSP do you save under for PSPImage? If I change the compatibility from X8-2019 down to X3 the history is not saved. But if I save X4-X7 it does show up.

notyou87, try saving for X3 compatiblity.

1) File -> Save As
2) Choose PSPImage as the format
3) Hit the "Options" button in the bottom right corner of the save as dialog
4) Change compatibility dropown to a minimum of X3.
5) Give it a new name.

Do you have a smaller image now?

That worked. Saving as X3 compatibility it's now 2.14mb (not the image I gave you guys, apparently I deleted that from my pc). But the other image/logo that was/is 340mb is now 2.14mb using that X3.
I did also try saving as X4 - X7 but that is the exact same size as saving as X8+ - 340mb.

This is oh so very bizarre. I contacted support via ticket/email last night regarding it so hopefully it's some weird bug they can fix - and soon.
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: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by LeviFiction »

Awesome, glad it worked. But I hate waiting around for Corel to fix things.

Give me a week and I'll have a script that rips out the history. Technically I should be able to do it in just a few quick hours, but I have no confidence in myself and so I tend to be quite slow.

EDIT: Okay, I Have most of the base code written, I just need to figure out the best way to re-write the block size after removing all of that extra data. Should be easy enough, just give me another week.
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: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by LeviFiction »

Alright, it took me forever but I have an experimental version of a script that will strip the history out of any image. I tried it on this 300MB file and it was very fast.

See the script and demo here: viewtopic.php?f=104&t=64207
https://levifiction.wordpress.com/
User avatar
flagpole
Posts: 535
Joined: Wed Sep 14, 2011 10:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B450 AORUS ELITE DDR4 USB 3.1 RGB
processor: Ryzen 2600
ram: 16GB
Video Card: RTX 2060
sound_card: on board
Hard_Drive_Capacity: 6.5TB
Monitor/Display Make & Model: Iiyama 27"
Location: UK
Contact:

Re: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by flagpole »

I think this affects PNGs too. Though it shouldn't.
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: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by LeviFiction »

If I am correct I think this effects PNGs if you convert a PSPIMAGE file into a PNG. It just sort of converts the text field of the PSPImage into a text field in the PNG not caring what the data is. If you edit and save a PNG without it being a PSPIMAGE or JPG or TIFF then no history data is copied over.
https://levifiction.wordpress.com/
User avatar
flagpole
Posts: 535
Joined: Wed Sep 14, 2011 10:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B450 AORUS ELITE DDR4 USB 3.1 RGB
processor: Ryzen 2600
ram: 16GB
Video Card: RTX 2060
sound_card: on board
Hard_Drive_Capacity: 6.5TB
Monitor/Display Make & Model: Iiyama 27"
Location: UK
Contact:

Re: .PSPIMAGE Files are 300mb+ with few layers - why/help?

Post by flagpole »

The image I gave you was created from scratch. I guess I probably did save it as .pspimage along the way.
Post Reply