Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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
    Dan

    #670727

    Hey 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,
    Ismael

    #670770

    Hi Ismael,

    Yes, I use Formidable with it’s upload filed.
    Hope that helps.
    Dan

    #670801

    Another 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?
    Dan

    #672149

    Hi,

    Try removing the image sizes with a plugin like:
    https://wordpress.org/plugins/simple-image-sizes/

    Best regards,
    Josue

    #672249

    Hi 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

    #672291

    Hi,

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.