unlimitedgrain Posted May 21, 2015 Share Posted May 21, 2015 (edited) Hi All, Maybe this is a strange question, but we have the following situation. Using 1.6.11 and default theme. Our image folder is already at 3,5 GB, so we started looking how we can reduce this. We have an option of saving images in a way the file is smaller. Before we start to change our images (almost 600) I want to be sure that if I use the option "delete this image" in the product-image page in BO, it will also delete this image on the server. I tried to understand where the images are stored, but can't find out how to identify images because they don't have the name we used when uploading, so deleting them with ftp is no option I think. Please can anyone tell me if the "delete this image" option actually deletes in from the image/p folder so we get free disk space? Thanks for your time!! Edited May 21, 2015 by unlimitedgrain (see edit history) Link to comment Share on other sites More sharing options...
Oexo France Posted May 21, 2015 Share Posted May 21, 2015 Hi, Images are sotred on: - /img/p/ - /img/s/ - imp/c/ depending of the type of the images. For products they're stored on /p/ folder. To answer when you delete your product image you delete the line on the database and the image, so it create a little free space. The thing you can done is to compress the images via the options of prestashop to gain space if you didin't got enought but the best things is to get more space (i got user on hosting with around 16go of images caused of thousand of products and it does not impact performances). Regards, 2 Link to comment Share on other sites More sharing options...
unlimitedgrain Posted May 21, 2015 Author Share Posted May 21, 2015 Thank you Oexo France, much appreciated! If I understand correctly, the option in the BO actually deletes the image file in the img/p folder! We are using png images and they are from 500kb - 1,2MB, so I want to save them in another way so they will use half the size. I hope that by doing this (uploading files that are half the size now) I will save 50% diskspace. Because it will be a lot of work to save the files, upload them to the products and deleting the ones that are there now, it is important to know this will result in saving around 50% of the used diskspace for images. Hope you can confirm this? Link to comment Share on other sites More sharing options...
Oexo France Posted May 21, 2015 Share Posted May 21, 2015 Png is louder than jpg. Use recompression to jpg with 70 percent and you'll allready save around 40/50% Link to comment Share on other sites More sharing options...
unlimitedgrain Posted May 21, 2015 Author Share Posted May 21, 2015 I can't use jpg because i need transparency, that's only possible with png. Link to comment Share on other sites More sharing options...
Oexo France Posted May 21, 2015 Share Posted May 21, 2015 (edited) Its really bad caused .jpg is not adapted for the web due to weight of the images. Edited May 21, 2015 by Oexo France (see edit history) Link to comment Share on other sites More sharing options...
unlimitedgrain Posted May 21, 2015 Author Share Posted May 21, 2015 I'm sorry Oexo France but I don't understand you! I have to use png because we need images to be transparent, but we saved them the wrong way. What I want to do is to save them for web, that way they will be 50% smaller in file size. By example 1 image is now 1,2mb, if I save for web it will be 650kb. Then when I upload the new image in the BO with the products I want to "delete this image" for the old one. If this option deletes the file in the img/p folder then I win 50% file size, so I have to know for sure if this is the case. Thanks for your time, greatly appreciated! Link to comment Share on other sites More sharing options...
Oexo France Posted May 21, 2015 Share Posted May 21, 2015 Yes bt to be clear i'll give you an example: We take an exemple, you create an image on photoshop without compression with png, the size of the file, is 1mo. If you create on jpg without compression size of file is at 500ko (50% of size reduction comparated to png). If you upload after your jpg on prestashop and configure the rate compression to 30% the image will be: (1000 - 500) = 500 500 / 100 = 5 5 x 70 = 350 So finaly your image will do 350ko with jpg and 1mo with png., you'll gain 65% of spaces per images. Actually if you do a special treathment to your png image you'll be able to gain the difference of the first and second but it's not a really good solution and a long term available. Regards Link to comment Share on other sites More sharing options...
unlimitedgrain Posted May 21, 2015 Author Share Posted May 21, 2015 Thanks a lot for your explanation. Still jpg does not offer the possibility to have transparency and that would mean we have white borders because of image size differences. This is not acceptable, we are selling art, so the presentation is very important. On the product-list we have a light gray background of the "product-box" (grid view) so it would be ugly to see a part white. With png the light gray edge is bigger or smaller depending on the image. (our site: https://www.artupfront.com ) Link to comment Share on other sites More sharing options...
Oexo France Posted May 21, 2015 Share Posted May 21, 2015 I understand your problematic, but else you dont do images / images treathment you cant do anything. Just one question, why do you need to save space ? Link to comment Share on other sites More sharing options...
unlimitedgrain Posted May 21, 2015 Author Share Posted May 21, 2015 we are at 90% of disk space with our hosting, 75% of the space is due to the images, so I first want to try to lower that before we upgrade our hosting account. Link to comment Share on other sites More sharing options...
Oexo France Posted May 21, 2015 Share Posted May 21, 2015 when i think i host without space limitation... so you didint get anymore option but it'll take a while. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now