Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › WP Photo Seller – Images Sizes upon upload
- This topic has 8 replies, 2 voices, and was last updated 9 years, 6 months ago by muleymadness.
-
AuthorPosts
-
May 7, 2015 at 12:29 am #12605muleymadnessMember
Help me out here please, I need some explanation on images sizes upon upload.
Here is what I see on my server (21 different sizes) uploaded for every single image. If I add up all the different sizes and the space they take up thats 2-3 times the size of my original image. Seems pretty ridiculous don’t you think? I understand we need a watermark, not sure if there is a better way for watermarking images (meaning does watermarked image have to be saved on a different image file?) Maybe so.
I realize we need our original image and thumbnail, but what so many sizes? In my case I have a price list or digital variation sizes of three different sizes. 1.0, .75, and .25
So what can’t we have just those sizes saved upon upload along with original, thumbnail, and watermark? There has to be a better way that just creating every size imagineable created for every photo. Can we get the option upon upload for just our individual needs. This will completely bloat and fill up a server real fast at current status.
Original – 1.9 MB
940×400 – 380.6 KB
800×600 – 480.8 KB
700×441 – 319.1 KB
669×272 – 190.3 KB
540×272 – 155.0 KB
460×295 – 144.2 KB
320×202 – 69.9 KB
300×300 – 95.8 KB
300×225 – 71.7 KB
300×214 – 69.2 KB
220×161 – 38.5 KB
200×200 – 42.8 KB
180×138 – 27.9 KB
177×142 – 27.4 KB
150×150 – 24.9 KB
147×118 – 19.9 KB
66×66 – 6.0 KB
52×50 – 4.0 KB
watermark – 1 MB
thumbnail – 150×150 – 24.9 KB
May 7, 2015 at 2:20 am #69922PeterMemberThe photo seller plugin does not produce that many resized versions of the uploaded image. Either your theme or another plugin is telling wordpress to make extra custom image sizes.
By default wp will create 3 or 4 extra image sizes during the upload process when you use the media uploader.
From memory I think they are:
thumbnail, medium and large.
In addition to the default sizes, this plugin also creates two extra sizes:
200×200
300×300
Anything else is not coming as a result of this plugin.
Somewhere on your site in another plugin’s code (or your active theme) there are some lines which are similar to:
add_image_size(‘some-custom-size’, 66, 66, true);
(there will be similar lines for the other sizes too)
Basically the above line tells wordpress that you want to register an image size of 66×66(px) and then when you upload a photo using the media uploader, wp will create all registered image sizes.
May 8, 2015 at 12:00 am #69923muleymadnessMemberWell looks like I have some more investigation to do them, but ALL of these are saved into the WP Photo Seller Upload folder, but your still saying that other code is saving them there? I’ll see what I can find and get back to you, thanks for the reply.
May 8, 2015 at 12:44 am #69924PeterMemberALL of these are saved into the WP Photo Seller Upload folder, but your still saying that other code is saving them there?
Actually the photo seller is saving them there but it is being told to produce these extra sizes by another plugin or your theme.
As you know, the photo seller uses the wordpress uploader and as explained previously, when you use the wordpress media uploader, the wordpress system will check which sizes have been registered and then it will create those sizes when a photo is being uploaded.
Yesterday I sent you another version of the plugin for you to test. In that version I added some code which will check the registered sizes in the system and will remove all but the ones which the photo seller needs. Check your inbox and you will see my email.
May 8, 2015 at 2:47 am #69925muleymadnessMemberThanks Peter,
I’ll just installed and tested the one you emailed. It seems to be working much better. Couple questions…
1. Should I be content with your fix or is it better to find the code from the theme or plugin that is producing the extra files and resolve/delete the code that way?
2. Why do we need or have the extra sizes? Is that for other templates or sizes to fit other users needs? Is it possible to only convert the sizes we need and get rid of any extra sizes?
3. Here are the sizes it’s creating on my new test image now (plus the watermark, additional 150×150 thumbnail, & of course original)
/DSC00159-150×150.jpg
/DSC00159-200×200.jpg
/DSC00159-300×225.jpg
/DSC00159-300×300.jpg
/DSC00159-800×600.jpg
4. Why do we need 2 thumbnails or why is it creating 2 of them?
5. And lastly I have my variations set for these sizes on this photo. Yet none of these sizes are the ones being saved upon upload, so why do we need any of the sizes above? Is your plugin just using the full size image and then creating it to send to customer upon purchase? If so where is this file being served/stored from?
Digital : Full Size (2816×2112)
Digital : Medium Size (1408×1056)
Digital : Small Size (704×528)
Sorry about my ignorance and silly questions just would like a better understanding of what’s going on here.
May 11, 2015 at 11:56 pm #69926muleymadnessMemberAny help with questions above Peter?
Also…
1. When I delete an image from Media Library, it’s only deleting the original image, is it possible to have it delete ALL sizes of the image. Thumbnails, watermark image, etc.?
2. If I don’t need the extra 200×200 & 300×300 this plugin creates can I just comment out those lines in the code? I assume those are for other templates sizes? I realize if I switched templates this could be a problem, but if I stick with Template 1 this shouldn’t matter to me?
May 12, 2015 at 12:07 am #69927PeterMember1. Should I be content with your fix or is it better to find the code from the theme or plugin that is producing the extra files and resolve/delete the code that way?
The latest fix is the best solution currently.
2. Why do we need or have the extra sizes? Is that for other templates or sizes to fit other users needs? Is it possible to only convert the sizes we need and get rid of any extra sizes?
Yes we create the 2 extra sizes (150 and 200) for the photo seller because we need them and also creating those thumbs during upload helps in speeding up load time of a site. We also need to create watermarks too.
The other sizes are created by wordpress and currently wp does not allow you to remove those default sizes.
4. Why do we need 2 thumbnails or why is it creating 2 of them?
see answer for 2.
5. And lastly I have my variations set for these sizes on this photo. Yet none of these sizes are the ones being saved upon upload, so why do we need any of the sizes above? Is your plugin just using the full size image and then creating it to send to customer upon purchase? If so where is this file being served/stored from?
The plugin does not store any of the sizes which people download after they buy. It creates those sizes on the fly when they click the download link.
May 12, 2015 at 1:36 am #69928muleymadnessMemberFrom what I understand, and it seems to be the case (as I tried it). WordPress DOES allow you remove the default sizes by placing the value size to ZERO. This then won’t create or upload medium & large sizes. Seems to be working for me anyway.
Any simple method for deleting all sizes of images from server?
May 12, 2015 at 3:37 am #69929muleymadnessMemberNever mind I found a solution for deleting images from server.
-
AuthorPosts
- You must be logged in to reply to this topic.