-
AuthorPosts
-
August 5, 2016 at 9:13 am #668891
Hello,
I allow clients to upload photos to a specific directory, but enfold’s auto generate of images is not required on that directory.
How can I make sure that images uploaded to /photos/ directory are left as they are without the other generated image sizes?
I’m using a child theme….
Thanks
DanAugust 10, 2016 at 10:32 am #670727Hey tech500,
Thank you for using Enfold.
How did you allow the clients to upload to a specific directory? Did you use a plugin or a custom script?
Best regards,
IsmaelAugust 10, 2016 at 11:32 am #670770Hi Ismael,
Yes, I use Formidable with it’s upload filed.
Hope that helps.
DanAugust 10, 2016 at 12:06 pm #670801Another issue came up… “Regenerate Thumbnails” will not work on images uploaded to specific folder inside “uploads”.
Formidable put all uploaded images into /uploads/formidable/ directory.I don’t think that the plugin”Regenerate Thumbnails” will work on that folder if the images are not included in the media library.
What do you think?
DanAugust 13, 2016 at 2:50 am #672149Hi,
Try removing the image sizes with a plugin like:
https://wordpress.org/plugins/simple-image-sizes/Best regards,
JosueAugust 13, 2016 at 1:12 pm #672249Hi Josue,
That plugin reads the image size from the theme, so once i delete sizes, they come back after I save that settings page.
There must be a php command that can tell wordpress “Do not generate thumbnails for directory /name/ ”Dan
August 13, 2016 at 5:33 pm #672291Hi,
If the plugin didn’t work you can directly hook into Enfold image sizes and disable them:
function enfold_customization_modify_thumb_size( $size ) { $size['widget'] = array('width'=>0, 'height'=>0); $size['square'] = array('width'=>0, 'height'=>0); $size['featured'] = array('width'=>0, 'height'=>0); $size['featured_large'] = array('width'=>0, 'height'=>0); $size['extra_large'] = array('width'=>0, 'height'=>0, 'crop' => false); $size['portfolio'] = array('width'=>0, 'height'=>0); $size['portfolio_small'] = array('width'=>0, 'height'=>0); $size['gallery'] = array('width'=>0, 'height'=>0); $size['magazine'] = array('width'=>0, 'height'=>0); $size['masonry'] = array('width'=>0, 'height'=>0, 'crop' => false); $size['entry_with_sidebar'] = array('width'=>0, 'height'=>0); $size['entry_without_sidebar'] = array('width'=>0, 'height'=>0); return $size; }
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.