OK I have found out a way to do this. With the plugin, with some checkboxes I am setting a crop option in the db in wp_options table, just like WP does it for the thumbnail, medium and large sizes.
So my big image sets the add_option('big_crop', true)
Than in functions.php I do:
if ( get_option( "big_crop" ) == true ) {
add_image_size( 'big', 1500, 1000, true );
} else {
add_image_size( 'big', 1500, 1000, false );
}
Related Posts:
- Custom image size / thumbnail – Crop to aspect ratio even when source image is smaller than set dimensions
- How to delete resized (cropped) image uploads and prevent future resizing?
- Why WordPress automatic cropping all my images?
- How to resize images in wordpress without adding any compression or changing the color profile of the images, possible?
- get_the_post_thumbnail_url with an unregistered size
- Cropped featured image replaces original image in gallery
- add_image_size() zoom-crop
- add_image_sizes ignoring crop sizes and using proportion
- “There has been an error cropping your image” when cropping image
- Image resize with image url
- Cropping an image before inserting into a post
- Why can’t I edit certain images from the WordPress Media library?
- Custom image size not regenerating when image editted
- Local WordPress installation doesn’t crop images
- Confusion about arguments sent to add_image_size
- add_image_size() to crop images into squares?
- is it possible to crop cover images in buddypress?
- WordPress crops images differently on retina screens?
- Hero image cropped at different dimensions
- Show image crop window on image upload
- Edit image results in copies of file being created
- Stop WordPress from cropping images using url parameters
- WordPress images not cropping properly
- Mass crop images: Landscape images -> Portrait images
- How do I get a smaller size of an avatar image
- Force square image crop during upload?
- Disable image rename on upload
- Auto-crop width, not height
- wordpress add image size crop function not working in version 3.8
- VT-resize (great alternative to timthumb) : Errors cropping (litespeed, centos 6.3)
- Plugin to select the custom image crop area
- Apply manual image cropping not to thumbnail but medium_large size
- Set image dimension for WP_Customize_Image_Control images
- How to get WordPress to resize images for srcset?
- How to change image type for specific size?
- Mixed content warnings after changing site adress from HTTP to HTTPS
- Insert an image into a post by API
- Which are precisely the predefined image sizes?
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- Change Image URL to a CDN
- Slider image issue in wordpress
- Getting custom size image URL
- Retrieving images from a NextGEN gallery
- Query for recent images across multiple posts
- Getting alt text of featured image
- Get image alt attribute just by image URL
- How to resolve – IE 6 ignores img “width” properties
- WordPress is stripping the Alt tag’s quote marks from images where Alt is not set, but leaving the word ‘alt’ creating problems for ADA compliance
- WordPress reduces the full size image and uses it as the original
- Show taxonomy list with taxonomy images ( SOLVED)
- get_children() not working properly – Only on one post?
- Is There A Way Of Using the_post_thumbnail() to Pull In A Specific Image From The Media Library
- Change WordPress Media Manager
- How to stop images from being wrapped in tags?
- Output random (custom) image size
- How do I create an alternate RSS feed for tags with custom image sizes for MailChimp?
- Move Image Captions Inside Link ( tag) if Added
- Sharing images to social media – issue with aspect ratio
- How to add custom classes to figure element only if image has caption?
- How to add an image to a custom url?
- Facebook og:image issues after https change [closed]
- Does WP create multiple images?
- How to use Facebox in WordPress theme?
- Change image name during uploading sequentially
- Get all image IDs from the Media Library
- How to redirect homepage to actual URL?
- Cropped image file size larger than original, is it normal?
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- Can I register a new thumbnail size and have it be an option in “Add Media”?
- How to make Custom Loop not crop featured images?
- Using mysql to replace img src?
- Get Original Dimension Featured Image on the homepage
- WordPress keeps resizing my 947×947 image down to 500×500 (full-size option)
- How do I display the featured image from an image gallery using a reference in code? (example within)
- attach several images to post + gallery
- caption shortcode inserts blank paragraph
- How to change background slider image when hovering on text?
- Can I achieve this with WordPress?
- Built-in image lazy loading: Does it come with a polyfill for older browsers?
- SQL: How to find all attachments that are not used in any posts/pages/custom_post_types
- I would like to set a FULL SCREEN background image to all my pages (same way it is on my home page)
- Enlarge Featured WordPress Images
- How to trigger “wp_handle_upload_prefilter” filter when uploading an image programatically?
- How to add element to the list of adjacent images?
- Responsive Images – Defining
- Why do images inserted in the post content via the_content() go off the max-width?
- WordPress Javascript displaying an image Question
- Using a full-width hero image that can be changed in the dashboard by a user
- Resize External Image
- Images are not getting uploaded
- Fatal error: Allowed memory size in PHP when allocating less
- Resized images not working – 404
- Background image call problem
- Create a custom attachment thumbnail for quick page load
- Change the image for a certain URL
- How to make an image bigger with wp_get_image_editor
- An image on my site is showing as the wrong image [closed]
- Display Images from Array with wp_get_attachment_image() [closed]
- Orientation of featured image in post?
- Gutenberg block HTML image rendering override