You can use the filter hook sanitize_file_name
for change the string. But I have no knowing about the check for the size image, but you get the string and can check for the values inside the string.
Related Posts:
- WordPress not creating “large” thumbnails
- How to get image title/alt attribute?
- How to Fix HTTP Error When Uploading Images?
- How to disable WordPress from creating thumbnails?
- How do you get the post thumbnail size?
- set_post_thumbnail_size vs add_image_size
- Minimum Dimensions Requirement for Featured Image?
- Generate Thumbnails only for Featured Images
- How to get all featured image sizes and their URLs?
- How to Dynamically Resize WordPress Image On-The-Fly (custom field/theme option)
- Display thumbnail only if requested size exists
- New image size version only for the Featured Image file
- Getting custom-sized featured image’s URL?
- Showing a placeholder/default img, if no featured image is set
- Featured image with the same height thumbs returns wrong thumb
- Change Output for Images in Content
- Can WordPress crop only the post thumbnails?
- How to get the image sizes, in a function, as per the sizes mentioned in the media settings?
- How to change _wp_attachment_metadata specific value in SQL?
- Autogenerated Thumbnail compression depending on size
- Only create image size when used in featured image
- How can I get a different image size, if all I have is the link?
- How to get custom image sizes into media uploader dropdown?
- WordPress resizes image to the same size as uploaded
- add_image_size and add_filter(‘image_size_names_choose’, ‘my_custom_image_sizes’) not working with wordpress 3.5.2
- wordpress responsive image srcset not working
- How do I get a random image from subset of images in media gallery?
- How do I get images (with a thumbnail preview) to show in search results?
- Why are extra 92 pixel square thumbnails created?
- wp-cli regenerate media is not working for custom sizes
- Remove dimensions from filename featured image
- Can a thumbnail of an animated gif be animated?
- WordPress Uploader Editor shows broken image
- add_image_size not working with the_post_thumbnail
- Why does the Hard Crop option Scale?
- How do I set the default “feature image” size?
- How to get full absolute url for post attachment?
- Thumbnails are bigger in size than the original image
- Thumbnail Cropping with add_image_size?
- If I Regenerate Thumbnails, would WordPress delete the existing Thumbnails and replace them with ‘new copies’?
- How to get cropped thumbnail source for custom post type
- Exclude featured image from attachment loop
- Errors when uploading images in WP 3.5
- adaptive featured images wordpress 4.4 grid
- Featured Image Not Working when loaded from sub-domain
- Set spesific size of featured images
- Generate image for newly added size
- Export xml use/import images from theme directory
- wp_get_attachment_image_src match smallest edge
- How to create resized versions of images added with wp_insert_attachment
- WordPress returns old thumbnail size after changing media settings
- Custom image size in the_content loop
- remove and disable image link in functions.php
- specify size of post preview image (not post thumbnail)
- media-library: how to insert thumbnails with a fixed width, regardless of landscape/portrait orientation
- How to bring files from the upload directory to the media gallery?
- Server B handling add_image_size() differently than Server A
- Post thumbnail throwing size limit parameters in
- Image with large file size not cropping
- What can I do if I set a gif as featured image? no thumbnail when i share on facebook
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- images not showing despite using add_theme_support(‘post-thumbnails’);
- Resizing thumbnails retrospectively
- post thumbnail: increase dimension if smaller than… Possible?
- Images uploaded on frontend display correctly but not in media editor.
- Generating very small sized thumbnails from featured image
- Get featured image with custom size outside WordPress
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- How risize a thumbnail?
- Unrestricted height thumbnails
- custom thumbnail image size not working
- Set Featured Image not opening – Stuck at loading
- Is wordpress compressing my images? if so, how to prevent it?
- Custom caption output for custom image size
- Display post thumbnail in foreach loop
- How to attach images that I “insert from url” into the post?
- the_post_thumbnail(‘medium’) still gives thumbnail-size img
- How to update custom image sizes?
- Attachment Image using wrong src?
- custom image size not being fetched
- Thumbnails are hard cropped not matter what
- Featured image size always cropped bottom
- Using the_post_thumbnail do not rollback to original image if specified thumbnail does not exist
- Missing image size
- Post thumbnail not displaying correct size
- Making a ‘featured image’ become the image for a full banner (top of page) image in a blog post?
- wp_get_attachment_image_src() works on index, but not on Archives
- Featured Image, and Image in post
- Setting featured image based on related post
- How to get post thumbnail to be equal to set media size
- Trouble Retrieving Thumbnail URL on Front-Page
- Always generate thumbnail after sideloading image
- setting featured image is not working while running script in background, works when running that script from browser
- Custom image sizes are not used
- Editing featured image
- WP is showing wrong image dimensions
- Get Thumbnails and Thumbnails URL from Media Manager
- Why some images are not allowed to be edited only for thumbnails?
- wp media regenerate says “no regeneration needed” whe that’s no the case
- Close featured image modal windows with JS