In general the format is:
originalfilename-300×203.jpg, where 300×203 are the dimensions of the thumbnail.
However, there are a few things that mean you can’t rely on this:
– if the user has edited the file within WP, the filename will change
– if the original image is smaller than the dimensions you specify, that thumbnail will not have been generated.
I think if I needed to do this, I’d create a ‘just for me’ PHP file or WordPress template in which I pass it the ID of the image and it generates the URL for me using WordPress’s own image functions to which you can pass the size (e.g. get_the_post_thumbnail_url).
Related Posts:
- Attach Thumbnail Generated from Video Upload as Featured Image for the Video
- Original image not saving?
- Redirect to another page using contact form 7? [closed]
- Uploaded images result in a file url with full path on disk appended
- Removing extra large generated images disables all crops
- Redimension thumbnail crop without creating new images
- Is there a way to force Featured image to show as attachement?
- Question regarding the file path for media_sideload_image and wp_upload_dir()
- Trigger refresh for new media manager in 3.5
- Physical organization of wordpress media library (Real Media Library plugin)
- Extend Media Library
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- How to show all available images in WP’s media library when using the Polylang plugin?
- Upload post thumbnail from the front end
- WP 3.5 media manager – how to create a working gallery frame
- Modify featured image path to Amazon S3
- Password protect some uploaded files, so only logged-in users can view them
- How to protect uploads in multisite if user is not logged in?
- Append button to WordPress Image Details modal
- Change URLs for static content
- uploading files to the uploads folder via ftp
- add_image_size creating lots of images (of various sizes)
- Remove upload_files capability from a role but allow role to manage an avatar image
- How to Check Disk Space used by Media Library
- Insert Featured image from Feed
- How to disable WordPress Media resize different size version?
- Image uploading stuck on “crunching”
- Change the size of the image preview on the media edit page
- insert post & Upload post thumbnail from the front end using ajax
- Add select field to media uploader that adds a class to the image
- Regenerate thumbnails unexpected resolution (96 x 96)
- How to host different file formats/types for a media attachment without creating multiple attachments?
- Change default from “Attachment post URL” to “File URL” in Add Media
- how to use media library [closed]
- wp_enqueue_media() Will not load JS on the theme
- Replacing Images in Media Library
- How to upload unknown file type?
- Uploading images on front end doesn’t generate thumbnail sizes
- Restrict WordPress Media Library for a specific user role (users can only see/select own media)
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- Update image via WP REST API
- Media Gallery Upload photo incorrect way like glitch
- Media Library does not show the uploaded image
- move_uploaded_file() not working on wordpress front end
- Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- Uploading .mp3 files http error – 2 “exact” files one successful other fails
- WordPress Uploads Directory not using dates in links
- Restrict role to view own media
- Multi Upload In Theme Options
- How to load attachment in media library for current user?
- How To Watermark Audio
- Resize existing library images
- Storing WordPress Media Library Uploaded files onto a separate domain
- Media Library Won’t Display Any Images
- Issue with images which have no sizes available
- More Fields & Media Upload
- Migrating media files (documents only) to a fresh install and maintaining the same directory structure
- How does wordpress handle media files?
- WordPress media upload issue could not insert attachment into the database
- Thumbnail images missing in WP media library
- get_attached_file returns wrong path after changing media upload dir
- Open Media Uploader Link in single post or page
- Remove Media File Items From Server That Do Not Exist in Media Library
- Cropping thumbnails to specific dimensions on front end post
- What if I have a large file on the server that I want the wp library to have?
- Using WP-CLI “wp media import” to sync files to the media library
- Hide media library images from other roles uploaded by admin
- Efficient way to move media folder to another folder
- Make inline uploader (plupload) on options page upload to a specific folder
- Get uploaded video URL
- How Do I Change the File Permission For Uploaded Files in WordPress?
- image not display in media library and thumbnail not display in post
- How to manually set an attachment in a post?
- Media Library: Remove replace images of selected author
- What is wrong with my wp_insert_attachment code?
- Adding attachment custom field metadata to TinyMCE tag
- Editor User Role can’t see other users media
- How to upload multiple images using WP rest API to media?
- Using Gravity Forms to upload media into library, then attach to post
- Media import failed in the WordPress importer
- Import all media referenced in posts
- Some images not appearing after switching from AWS S3 back to local
- Organizing the Media Library for Cleanup
- Allow author to upload image via Media button without plugin
- Featured image to grayscale with PHP imagefilter – which hook to use?
- How to configure WordPress to create thumbnails
- My deleted media exists jet
- Exclude some photos in media library
- Failed to load resource at admin screen
- Make thumbnail from uploaded image without plugin
- Set featured link not showing
- Media uploader & manager: add/remove class on image with checkbox
- wordpress 3.6 media manager cropping timestamp
- Image uploaded in media library, can only see it when I using the WP Edit Image feature. 404 when trying to view in browser
- Automatically adding images to a certain page through the Media Uploader
- Host Images from Link
- Add frontend editor with media buttons for Visitors and display only their media
- Retroactively change Permalinks for media files after disabling year/month format
- Assign multiple categories to Media Library upload