I was wondering if it is possible to modify the way WordPress handles image uploads. If I upload an image now, the default filenames for the various sizes include the dimensions, something like the following: image-100x100.jpg
, image-300x300.jpg
, image-600x600.jpg
, and image.jpg
.
While this may be useful in some cases, I need these file names to be a bit more versatile, something like the following: image-thumb.jpg
, image-medium.jpg
, image-large.jpg
, and image.jpg
.
Does anyone have any ideas how I could accomplish this? Thank you for reading. As always, any ideas or suggestions are appreciated.
You may be able to use Wordpress' native post images , for which you can define resize dimensions using add_image_size
. I think this is a 3.0+ feature.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.