Get all the types of image sizes from WordPress DB
-
Is it possible to simply query the WordPress DB for the types of images created when an image is uploaded?
For example, I upload an image and it creates 7 images…
aMEsvTUklw0uZ3gk3Q6lAj6302a.jpg
aMEsvTUklw0uZ3gk3Q6lAj6302a-50×50.jpg
aMEsvTUklw0uZ3gk3Q6lAj6302a-150×150.jpg
aMEsvTUklw0uZ3gk3Q6lAj6302a-200×300.jpg
aMEsvTUklw0uZ3gk3Q6lAj6302a-400×280.jpg
aMEsvTUklw0uZ3gk3Q6lAj6302a-680×330.jpg
aMEsvTUklw0uZ3gk3Q6lAj6302a-683×1024.jpgI know that a bunch are generated due to the current theme I use. So the breakdown… The first image is of course the original. I think 150×150, 200×300, and 683×1024 are standard default settings for WordPress itself (that I can change in the settings). The rest (50×50, 400×280, 680×330) I think are generated per my theme.
I want to be able to simply query the raw WordPress database and get back the 6 EXTRA images to create.
Is this possible?
- The topic ‘Get all the types of image sizes from WordPress DB’ is closed to new replies.