Support › Meta Box AIO › Compress image uploading size
I use the following code to upload image.
Are there anyway to compress the file size and change the directory?
Or any hook to use to do these work?
'name' => __('Item Image', ''),
'id' => $prefix . 'meta_items_image',
'desc' => __('Only JPG,PNG,GIF', ''),
'type' => 'image',
'max_file_uploads' => 3,
'class' => 'item-image',
To compress the image uploaded, you can use a third-party plugin such as Smush https://wordpress.org/plugins/wp-smushit/
There is only the field file that supports uploading files to the custom folder. Please get more details on the documentation https://docs.metabox.io/fields/file/