
-
AuthorPosts
-
May 6, 2018 at 4:46 pm #952342
Hello together,
I’m new in WordPress theme and Enfold Theme.
I have upload with WordPress (Enfold Theme) a lot of photos for a Galery . Now I have seen in the “wordpress/wp-content/uploads/* folder that I have for each photo 20 files with different sizes. From 36×36, 120×120, ……. up to the original size. What is the reason and can I choose the upload sizes. Under “Einstellungen > Medien” have I only 3 sizes (150×150, 300×300 and 1024×1024. (sorry for my bad English, I can better write in German).
Thanks a lot :-)
Regards
MarkusMay 7, 2018 at 5:00 am #952478Hey br50com,
WordPress creates many different image sizes when you upload a image and chooses the appropriate file to show depending on screen size the device viewing the site, and the element showing the image. This is normal and intended. Although you can change these sizes using a plugin such as Simple Image Sizes or writing some code, but both of these options are meant for advanced users, most users will find the built in sizes are the best option.
I hope this helps explain it.Best regards,
MikeMay 7, 2018 at 8:41 am #952538Hi Mike,
thank you for reply. Now I understand the architecture. If the upload picture has a size of 3 or 4 MB, it creates in the upload folder approx 20 Files with approx 8-10 MB (in the original size and smaller).To reduce the space (MB) I must reduce fist the orignal photo on my wishing max size and resulotion and than upload (Because I have over 10.000 photos to migrate).
Only I need real a good and great photo I must upload it in a better quality.
Gives it a plugin to upload files with them I can choose the original photos, but by the upload it upload not the original photo, it should be reduce first the original photo to a size of (as example) 800×600 and 80% and this is the than the basic photo for the upload in the “wordpress/wp-content/uploads/* folder” and out this photo create WordPress the required smaller photos ?
Thanks and regards
MarkusMay 8, 2018 at 11:24 am #953308Hi,
Sorry, I’m not sure I follow.
I understand that you have 10k photos to upload, so all the extra files is no good.
Then I think you are saying you only need two sizes for each image?
If this is true, you can remove some of the sizes in the functions.php look for:/* * Register additional image thumbnail sizes * Those thumbnails are generated on image upload! * * If the size of an array was changed after an image was uploaded you either need to re-upload the image * or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/ */ $avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']); $avia_config['selectableImgSize'] = array( 'square' => __('Square','avia_framework'), 'featured' => __('Featured Thin','avia_framework'), 'featured_large' => __('Featured Large','avia_framework'), 'portfolio' => __('Portfolio','avia_framework'), 'gallery' => __('Gallery','avia_framework'), 'entry_with_sidebar' => __('Entry with Sidebar','avia_framework'), 'entry_without_sidebar' => __('Entry without Sidebar','avia_framework'), 'extra_large' => __('Fullscreen Sections/Sliders','avia_framework'), ); avia_backend_add_thumbnail_size($avia_config);
and remove the ones you don’t want, be sure to save a copy of the original file should you make an error.
Or you can use the plugin above and set the size to zero for the images you don’t want, this might be the best option.
After you remove your sizes please use this plugin: Regenerate Thumbnails
As you remove each size check your site to ensure the size you removed is not used elsewhere.
Best regards,
MikeMay 8, 2018 at 9:29 pm #953552Hi Mike,
now I understand the Funktion. That’s great, I will try it tomorrow.Thanks a lot
Regards
MarkusMay 9, 2018 at 2:31 am #953639Hi,
Glad to hear, we will leave this open for now to hear if it works for you.Best regards,
MikeMay 11, 2018 at 8:55 am #955089Hi Mike,
I have try it. It works, but not real perfect. Now I have to test it only one size 36×36 in the functions.php
Than I have download 2 photos (100KB and 4 MB) . I have deactivate all plugins.
But in the upload Folder I have again some diffrent Image sizes (but not more so many)
100KB File
4MB File
Perhaps it gives a further config file or I have done somthing wrong.
But this is okay for me, I understand now the function of the Mediacenter and download. The best is to make no changes in the config files and download rezize photo for my photo gallerys.
I have also test the both plugins “Resize Image After Upload” and “Imsanity”. If I will download photos for a Gallery I can activate one of this plugins for this Action and it help to save a lot of space and some filesizes
Regards
MarkusMay 12, 2018 at 5:48 pm #955803Hi,
You can also try setting the WordPress image sizes to zero at WordPress > Settings > Media
Perhaps this article will also help explain: How to Prevent WordPress from Generating Image SizesBest regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.