-
AuthorPosts
-
October 3, 2014 at 1:59 pm #329666
Hi everyone,
This is a follow up of this closed threads https://kriesi.at/support/topic/too-many-image-resized-as-uploading-any-image/ You might want to merge, thank you.
Have been set any Media WP default size to “0” (to avoid them uploading). Have been also updating to Enfold 3.0 and commenting out Enfold image sizes as shown here (functions.php):
$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 ); OPC */ // images for fullsize pages and fullsize slider /* $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); OPC */ // images for fullsize pages and fullsize slider /* $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); OPC */ // images for fullscrren slider /* $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); OPC */ // images for portfolio entries (2,3 column) /* $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); OPC */ // images for portfolio 4 columns /* $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); OPC */ // images for portfolio entries (2,3 column) /* $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); OPC */ // images for magazines /* $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); OPC */ // images for fullscreen masonry /* $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); OPC */ // big images for blog and page entries /* $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); OPC */ // images for fullsize pages and fullsize slider
Even so, I am getting 3 extra images resized:
120×120
450×337
450×450Might you please explain what these 3 size are and how removing them from uploading ?
Many thanks
PS.By the way, love enfold 3.0, nice new features and New demo installations. Nice work, thank you!
Cheers!
October 3, 2014 at 4:25 pm #329765Hey macatokio!
The theme isn’t the only thing that adds images. You can use this plugin to see all image sizes that are registered with your WordPress installation: http://wordpress.org/extend/plugins/simple-image-sizes/
Best regards,
DevinOctober 3, 2014 at 4:54 pm #329786Hi Devin, thank you for quick answering.
Just using Better WordPress Minify plugin, have been disabling and trying again: same result.
Me do not understand: providing I have WP default Media set to “0” (not any img being created), just have Enfold theme. Might you please help understand where these resized images could come from ?
120×120
450×337
450×450Cheers!
October 3, 2014 at 5:09 pm #329794Ah Devin, just installed mentioned plugin:
120×120 >> shop_thumbnail size
450×337 >> shop_single size
450×450 >> shop_catalog sizeWhat should I do to prevent them from being uploaded ? Which theme template is being creating those sizes ?
Thank you
October 3, 2014 at 6:54 pm #329842Those are from WooCommerce.
October 3, 2014 at 8:00 pm #329872I do not have WooCommerce installed (I would have mention it).
Devin, might you please confirm ?
Cheers!
October 3, 2014 at 10:43 pm #329924I don’t know in that case. Those are the sizes set from WooCommerce.
October 3, 2014 at 11:14 pm #329939You might agree there is no reason to have WooCommerce resized image as not installing WooCommerce. Why not placing a IF conditional or something else to avoid those image to be created as WooCommerce is not installed ?
I cannot see my server being stuffed with tons of images I will never use, I would really appreciate you to check this issue out.
Could it be a bug ? In the meantime, might you please suggest a fix ?
Thank you.
Cheers!
- This reply was modified 10 years, 1 month ago by macatokio.
October 4, 2014 at 1:51 am #329994You can use that plugin to delete any images you don’t want to be generated from being generated.
October 4, 2014 at 2:32 pm #330200Thank you Devin, yep I know but not a good idea to use a plugin for this.
Might you please indicate which Enfold template do create those images and how to remove them ?
As a (happy) Enfold client (deeply nice theme), I believe this is an Enfold issue that needs to be adressed IMHO.
Is there any bug tracker or any section here to mark this issue out ?
Thanks
Cheers !
October 6, 2014 at 1:51 am #330642Hi!
Go to Settings > Media. Set those thumbnail sizes to 0. Update then save changes. They won’t be generated after that. Or you can edit config-woocommerce > config.php. Find and remove this line of code:
//product thumbnails $avia_config['imgSize']['shop_thumbnail'] = array('width'=>120, 'height'=>120); $avia_config['imgSize']['shop_catalog'] = array('width'=>450, 'height'=>450); $avia_config['imgSize']['shop_single'] = array('width'=>450, 'height'=>999, 'crop' => false);
Cheers!
IsmaelOctober 6, 2014 at 8:55 pm #331164Great, works !
Or you can edit config-woocommerce > config.php. Find and remove this line of code:
Many thanks, Ismael.
:-)))))
Cheers!
-
AuthorPosts
- The topic ‘Too many image resized as uploading any image ? (part 2)’ is closed to new replies.