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?
- Set default image sizes in WordPress to hard crop
- Which action hook can I use when a featured image has been selected
- How can I add the “Use as featured image” to a custom metabox?
- Preview Image Path in Admin Section
- The WordPress Gallery, Grabbing The Link and Images?
- How to upload images from my directory into my wordpress?
- Add a featured image in my theme?
- help getting featured image using get_posts
- Why can I not view image attachment pages?
- Images are randomly deleted from server
- Restrict Image Uploads to a Certain File Type
- Rename media files generated during upload
- Image popup in a lightbox / overlay from the backend 3.5 admin area (plugin)
- Auto resize images after adding a new size
- media sideload image and Google Content
- How to display alt tags in img src?
- Big Image on Featured Post, Normal on Single Post
- Making images in posts link to the image file rather than the attachment page
- offload media to external services [closed]
- How to create ‘Local’ filters for WordPress srcset sizes in template parts?
- How to stop wordpress always displaying full-res images
- Transfer only original images to new site
- How to filter the image embed code based on link type
- Retain the original name of the image on resize
- Retrieve image from content, assign it as a featured, and then remove it from the content
- Custom Loop, Match Category with Page: How to display post featured image?
- Modifying the HTML Output of Inserted Images
- Include an image within auto the_excerpt?
- Google verification challenge with file location
- Remove height attribute from wp_get_attachment
- How do I retrieve an image’s width and height using Advanced Custom Fields?
- wp get attachment image always gives me thumbnail
- Images are not showing after moving WordPress installation from server to localhost?
- Images are not showing up in “Uploaded to this post”
- Right click© images: protection
- Cache DB queries result
- Remove “%” from strings in serialized arrays in wp_postmeta
- Images not found after migrating WordPress website
- Adding srcset to an image in ajax
- Error uploading images in wordpress
- Disable Media File Image Link On Mobile Devices
- Set two default featured images
- Automatically generate missing images
- Apply nextgen-gallery lightbox effect [closed]
- Page speed error: “serve scaled images”
- How can i sorting and display image order by siz in media library?
- x2 images for retina?
- i want to change URL of WordPress image or rewrite in runtime
- Load url image full size in thumbnail, medium, large size
- WordPress can’t detect any thumbnails size?
- Remove image border in twentyeleven theme [closed]
- How to display posts with images in fullscreen slider
- 403 Forbidden when accessing image in wordpress
- Specify which image sizes are created on a per image basis
- Extract url from next_image_link
- Rename uploads filenames to POST-ID on upload
- Title image is missing ( but is not the WP 3.5 issue )
- Why images are disappearing on WordPress web site?
- How to include featured image on blog post preview?
- Hover images and Videos
- Multisite image URLs incorrect in editor
- Load Webp Version of Image if it exists
- Get field added via attachment_fields_to_edit filter in Gutenberg
- Fix position of an image while using elementor pro gallary widget
- Neither intermediate_image_sizes_advanced or intermediate_image_sizes filter is firing
- How to allow shortcodes in image descriptions?