How to Reduce Image File Sizes?
Moderator: Kathy_9
-
Linda Lou
- Posts: 253
- Joined: Sun Jan 28, 2018 10:26 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel i7vPro10th Gen
- ram: 8GB
- Hard_Drive_Capacity: 1024 GB
- Monitor/Display Make & Model: ThinkPad Extreme Gen3
- Corel programs: PaintShop Pro 7, 8.1, 2018, 2023
How to Reduce Image File Sizes?
I frequently get an error on a website where I upload banner images to that the file cannot be over 5 mb. All my banners measure 900x300, but some files are quite large. I don't know what is causing that. Is it the amount of layers that I've used in my draft that does that? Does "Merge Visible" not remove the hidden layers I'm not using? It is really frustrating to spend hours on a project only to find out that the file is too large. What can I do to avoid this? I've fixed some by opening a new image and pasting sections from the original. There must be a better way! 
-
rondo
- Posts: 268
- Joined: Fri Jun 06, 2014 9:51 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Gigabyte
- processor: Intel I5 6600k 3.5 GHz
- ram: 16 GB
- Video Card: Nvidia 1060
- sound_card: creative x-fi
- Hard_Drive_Capacity: 2TB
- Monitor/Display Make & Model: Asus ProArt
- Corel programs: PSP X6, X9, Aftershot Pro 3, Painter
Re: How to Reduce Image File Sizes?
Go to File, Jpeg Optimizer, set size and then export to what folder you want.
PNG Optimizer in same menu also.
PNG Optimizer in same menu also.
Last edited by rondo on Sat May 12, 2018 6:10 pm, edited 1 time in total.
-
Linda Lou
- Posts: 253
- Joined: Sun Jan 28, 2018 10:26 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel i7vPro10th Gen
- ram: 8GB
- Hard_Drive_Capacity: 1024 GB
- Monitor/Display Make & Model: ThinkPad Extreme Gen3
- Corel programs: PaintShop Pro 7, 8.1, 2018, 2023
Re: How to Reduce Image File Sizes?
Thank you! I usually upload .png, but I suppose Optimizer will work for that as well.
- hartpaul
- Advisor
- Posts: 2893
- Joined: Tue Mar 20, 2012 3:38 pm
- 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: How to Reduce Image File Sizes?
File size has been asked aboutr a number of times so I thought I might prepare some information.
I prepared a 900 x 300 pixel image and saved it as a bmp, png, jpgs with compression 1, 10, 20 and 99.
I then did the same with a graphic image filled with fishes pattern and again with a complex photo, and lastly the same complex photo with a photo portrait addition.
The image saves nd their sizes are shown:
Note:
1. In all cases the bmp takes the most amount of disk space.
2. For a plain white object where each pixel has the maximum channel value R=255, G=255, B=255) and no matter what the compression the jpgs are all the same and take more space than the png. This is because of teh overheads involved in a jpg.
With a simple graphic of a fish pattern much changes :
Note:
1. Now all the jpgs except the most highly compressed use more disk space than the png.
2. So pngs are good for basic graphics in saving space.
When it comes to photos another major change becomes obvious.
Note:
1. The png and bmp take up most disk space and the jpgs take up less space the more the compression.
Now some images can have a main subject and a background with all being sharp whereas the background is not required to be sharp. This means that you can actually use a soften brush to soften the background details so directing attention to the main subject. This in turn can make a decrease in disk space of as much as 35%.
Note : Here you can see the effect of softening the background. I even softened the black circled area even more and if that was done to the rest of the background then a saving of 40% or more in disk size could be made.
The OP has mentioned that they had a problem in keeping the disk size to less than 4MB (4000 KB).
As you can see in the file info above , none of my images of the same size even exceeded 1 MB.
So perhaps more info is needed from the OP.
I prepared a 900 x 300 pixel image and saved it as a bmp, png, jpgs with compression 1, 10, 20 and 99.
I then did the same with a graphic image filled with fishes pattern and again with a complex photo, and lastly the same complex photo with a photo portrait addition.
The image saves nd their sizes are shown:
Note:
1. In all cases the bmp takes the most amount of disk space.
2. For a plain white object where each pixel has the maximum channel value R=255, G=255, B=255) and no matter what the compression the jpgs are all the same and take more space than the png. This is because of teh overheads involved in a jpg.
With a simple graphic of a fish pattern much changes :
Note:
1. Now all the jpgs except the most highly compressed use more disk space than the png.
2. So pngs are good for basic graphics in saving space.
When it comes to photos another major change becomes obvious.
Note:
1. The png and bmp take up most disk space and the jpgs take up less space the more the compression.
Now some images can have a main subject and a background with all being sharp whereas the background is not required to be sharp. This means that you can actually use a soften brush to soften the background details so directing attention to the main subject. This in turn can make a decrease in disk space of as much as 35%.
Note : Here you can see the effect of softening the background. I even softened the black circled area even more and if that was done to the rest of the background then a saving of 40% or more in disk size could be made.
The OP has mentioned that they had a problem in keeping the disk size to less than 4MB (4000 KB).
As you can see in the file info above , none of my images of the same size even exceeded 1 MB.
So perhaps more info is needed from the OP.
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
-
JoeB
- Posts: 2778
- Joined: Fri Mar 28, 2008 10:04 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: LENOVO 4524PE4 ThinkCentre M91p
- processor: 3.10 gigahertz Intel Quad Core i5-2400
- ram: 8 GB
- Hard_Drive_Capacity: 4.6 TB
- Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
- Location: Canada
Re: How to Reduce Image File Sizes?
That is some extremely detailed and informative stuff you just posted, @hartpaul! I particularly learned from the tip about blurring/softening background where that data wasn't really the focus of the photo, leaving the subject in focus, and how that effectively reduced saved file sizes. While we should have known intuitively that your process would have that affect, we often simply forget the principles behind the graphic work we do. A lot of work on your part, good info and an excellent reminder for us to think about the principles behind the stuff we are doing with PSP!
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
- hartpaul
- Advisor
- Posts: 2893
- Joined: Tue Mar 20, 2012 3:38 pm
- 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: How to Reduce Image File Sizes?
Thanks Joe. I am also working on another idea that cause trouble, PPI v DPI and how people confuse the ideas of quality of image with those items. More later
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
-
JoeB
- Posts: 2778
- Joined: Fri Mar 28, 2008 10:04 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: LENOVO 4524PE4 ThinkCentre M91p
- processor: 3.10 gigahertz Intel Quad Core i5-2400
- ram: 8 GB
- Hard_Drive_Capacity: 4.6 TB
- Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
- Location: Canada
Re: How to Reduce Image File Sizes?
I know that you're already aware that I'm a real harpy on the subject of the difference in the terms - and the meaning of - PPI vs. DPI, and of people posting about questions that actually concern PPI but calling it DPI. I posted what seems to have been a well received explanation of PPI in this forum here:hartpaul wrote:Thanks Joe. I am also working on another idea that cause trouble, PPI v DPI and how people confuse the ideas of quality of image with those items. More later
viewtopic.php?f=56&t=61213#p339324
I haven't done a similar post about DPI because I just thought that once people realized that this term only referred to printer specifications, and wasn't something that most people who use inkjet printers would really have to concern themselves with, perhaps it would not be needed. When actually printing, people just choose draft, normal, or photo settings in their printer software. The printer specifications alone will determine how the printer both allocates and distributes the dots of ink it ejects per inch of paper, otherwise known as DPI.
That's unlike PPI, which is set in the graphic editor, and which tells the printer how many pixels of the image in their editor will be printed on one inch of paper. This is important for graphic program users to understand if they want to send their graphic output to any printer and know how that will affect the quality of printed output. And, of course, no matter what graphic editing program you use, you can't control the printers DPI (which is a printer specification only) but only control/set the PPI of the output from your graphic editor.
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
-
jayson1945
- Posts: 34
- Joined: Thu Mar 01, 2018 2:50 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i-5 3.2Ghz
- ram: 4GB
- Hard_Drive_Capacity: 500gb
- Monitor/Display Make & Model: BenQ
- Corel programs: PSP X2, X4, X7, PSP 2018,
- Location: UK
Re: How to Reduce Image File Sizes?
I have just had a look at the JoeB link. I would advise anyone to have a look also if you're a simpleton like me and have always struggled to understand PPI etc. A useful explanation of how image files are made. ThanksJoeB wrote:I know that you're already aware that I'm a real harpy on the subject of the difference in the terms - and the meaning of - PPI vs. DPI, and of people posting about questions that actually concern PPI but calling it DPI. I posted what seems to have been a well received explanation of PPI in this forum here:
viewtopic.php?f=56&t=61213#p339324
- flagpole
- Posts: 535
- Joined: Wed Sep 14, 2011 10:12 am
- 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: How to Reduce Image File Sizes?
There's a bug...
When you save as .png without going through the optimiser it actually saves as .bmp but with the .png extension.
When you save as .png without going through the optimiser it actually saves as .bmp but with the .png extension.
- hartpaul
- Advisor
- Posts: 2893
- Joined: Tue Mar 20, 2012 3:38 pm
- 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: How to Reduce Image File Sizes?
What bug? Is this 2018 you are talking about as you do not have it mentioned in your profile info.
How are you determining that it is a bmp with a png extension?
Just tool 4 jpgs and saved as png and bmp directly - no optimiser and the png s were consistently smaller than the bmp files
PSP 2018 version 20. 2. 0. 1
How are you determining that it is a bmp with a png extension?
Just tool 4 jpgs and saved as png and bmp directly - no optimiser and the png s were consistently smaller than the bmp files
PSP 2018 version 20. 2. 0. 1
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- 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: How to Reduce Image File Sizes?
I did the same, I even went into the raw data and confirmed the formatting was PNG and not BMP. Also in PSP2018. i also tried PSP8, and XI, an X2. No such luck on finding a bug like that.
I will point out that scripts need to be careful. All of the file extension logic is stored in the dialog box. So when you save out, if you don't have your script setup to save as PNG then it doesn't matter that you put "PNG" as your extension. It'll still save as whatever format is listed in the parameters. But that's the closest I'm aware of.
I will point out that scripts need to be careful. All of the file extension logic is stored in the dialog box. So when you save out, if you don't have your script setup to save as PNG then it doesn't matter that you put "PNG" as your extension. It'll still save as whatever format is listed in the parameters. But that's the closest I'm aware of.
https://levifiction.wordpress.com/
- flagpole
- Posts: 535
- Joined: Wed Sep 14, 2011 10:12 am
- 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: How to Reduce Image File Sizes?
I've not looked at the raw file... But the sizes are exactly the same.
I've just got in to the habit of saving png's via the optimiser. I'll have a run at it tomorrow and see if I can reproduce it.
I've just got in to the habit of saving png's via the optimiser. I'll have a run at it tomorrow and see if I can reproduce it.
- flagpole
- Posts: 535
- Joined: Wed Sep 14, 2011 10:12 am
- 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: How to Reduce Image File Sizes?
So i've got a file for you...LeviFiction wrote:I did the same, I even went into the raw data and confirmed the formatting was PNG and not BMP. Also in PSP2018. i also tried PSP8, and XI, an X2. No such luck on finding a bug like that.
I will point out that scripts need to be careful. All of the file extension logic is stored in the dialog box. So when you save out, if you don't have your script setup to save as PNG then it doesn't matter that you put "PNG" as your extension. It'll still save as whatever format is listed in the parameters. But that's the closest I'm aware of.
http://nigelcoldwell.co.uk/84twiddlebolts.rar (188K 2.5Meg-unrared)
http://nigelcoldwell.co.uk/84twiddledbolts2.png (95K)
I've been working on this for an hour or so, saved it as .pspimage, then .png. The png is massive, 2.5Meg where as when i save it through the optimiser (full colour, alpha transparency) it's 95K.
The 'header' is below
PNG
XML:com.adobe.xmp <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.1.2">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
<photoshop:History>
I've been trying to recreate this since i left this thread.
Last edited by flagpole on Mon Aug 20, 2018 10:27 am, edited 2 times in total.
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- 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: How to Reduce Image File Sizes?
Flagpole this is the portion of your post that we were responding to. Yes it's extremely large, but it's still a PNG. A perfectly valid PNG, I verified each part of the file with the PNG standard. Your image is 1710x891 pixels. It's saved at 8-bit per channel RGB with full transparency so 32-bit per pixel format. Without any compression that's 5MB. So it is being compressed. A BMP of this image is 4.36MB.When you save as .png without going through the optimiser it actually saves as .bmp but with the .png extension.
So you claimed it was actually a BMP format with a PNG extension. When in fact it's just a really huge PNG. That's all we were saying..
Last edited by LeviFiction on Fri Jun 08, 2018 3:51 pm, edited 2 times in total.
https://levifiction.wordpress.com/
- flagpole
- Posts: 535
- Joined: Wed Sep 14, 2011 10:12 am
- 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: How to Reduce Image File Sizes?
Why's it so big?
I was obviously mistaken in saying it was saving as a bitmap. I hadn't given it as much though as I should have. It was just the similarity in the sizes.
I mean what is the point of compression if it's including all that junk?
I was obviously mistaken in saying it was saving as a bitmap. I hadn't given it as much though as I should have. It was just the similarity in the sizes.
I mean what is the point of compression if it's including all that junk?
Last edited by flagpole on Fri Jun 08, 2018 3:53 pm, edited 1 time in total.
