When adding a new photo to wordpress post, you have have the option to select the size of the image like you can see here:
Is there a way to edit the size of these images? The max width an image can be in a post is 598px, so is there a way I can specify width 598px for any of these?
Is there a way to switch all previous posts from "Full Size" to whatever size has 598px?
You can set the various image sizes in the backend - Settings -> Media
There you can set Thumbnail, Medium and Large.
To regenerate all the image sizes again after they have already been uploaded and resized by Wordpress using the old settings you would use the plugin Regenerate Thumbnails
Don't be misled by the name of the plugin (which although technically correct from a WP point of view is pretty misleading I would say). The plugin regenerates all the image sizes, not just the thumbnail size. It doesn't regenerate the original full size version of course, just the three sizes you set in the Media settings.
The plugin author confirms it here -> Regenerate all image sizes
Related
I need to change woocommerce thumbnail size from 180x180 to 173x173. I have set in the functions.php the proper code and regenerated thumbnails with Regenerate Thumbnails plugin. All good so far.
The problem is that some of the products take the new size (173x173) properly and some retain the old size 180x180.
I want to delete the old thumbs but i don't get why some of the products are still reading that dimension.
Thank you
Fixed. Turned out that the images that have less than 173 in height does not display. So i changed the resize value to 0x173 and worked well.
I have had a requirement to update a WP build so that the thumbnail size changes from (the default) 150x150 to 500x500.
I've amended the size within the Settings > Media and utilised the awesome "Regenerate Thumbnails" plug-in to create the image files at the new sizes. So everything should be cool... alas not!
When I call my new image thumbnail wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()),'thumbnail'); Wordpress is still returning my image as ...150x150.jpg and not the new thumbnail size.
I've attempted updating the page/post in which the image appears but this doesn't seem to work. Any ideas?
Note: I am using a multi-site instance of Wordpress, but I've checked each instance to ensure that the images have been resized and that the settings have updated. Everything seems to be working correctly.
Change the resize function to a different tag, i.e. "thumbnail_2".
Regen the thumbnails and check to see if the new size reference works wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()),'thumbnail_2');
thumbnail is a WP default term, same as you couldn't (probably) create a custom post type named post. Every CMS and framework have defaults that cannot (shouldn't) be overridden. There are many, many reasons for this. It's not a work around, just "the way".
I upload images around 500x500kb (vary slightly as I resize with a percentage). Wordpress is set to create thumbnails at 150x150.
However, I'm getting 'serve scaled images' errors for two file sizes (dimensions added to end of file title) that are begin resized. One is 272 x 148 and the other is 160x160, yet these sizes aren't in Wordpress media settings. I'm guessing they are theme-specific.
But, as these files appear to be created automatically, how do I set it up so that files are created with the dimensions that are obviously needed by my theme.
And, how does my theme know which version to grab?
Thanks!
Adding new image size
You are looking for Wordpress add_image_size function.
Registers a new image size. This means WordPress will create a copy of the image with the specified dimensions when a new image is uploaded.
In your case:
add_image_size('your-custom-size-name', 272, 148, true);
More info on codex: http://codex.wordpress.org/Function_Reference/add_image_size
New image size in theme
Your theme grabs the image size you ask for with the function get_post_image_thumbnail.
get_the_post_thumbnail($post_id, 'your-custom-size-name');
Resizing existing images
If you've already uploaded some images, you may want to adjust them to the new dimensions automatically. There are few plugins that do so, for example Regenerate thumbnails.
Also, you may want to look to all-in-one tutorial on TutsPlus I've found while googling for the plugin.
I can't see the thumbnail with it's proper regulation. By default, the thumbnail shown 200X300, 600X1200, 600X1024. If i use 600X1200 or 600X1024 it's not show in site properly. But if I use 200X300 then show properly but the resulation is so bad.
http://awesomescreenshot.com/04d2m8gy7a
I would accept that you already have added this image sizes in your functions.php. In order to get the proper image output, you need to regenerate your thumbnails to set the proper thumbnail sizes. Download and install Regenerate Thumbnails and regenerate all you thumbnails. You only need to do this once.
I have this news portal i built, and the client want a different size of the featured image.
I all ready made my first desired size and they have posted around 200+ posts all ready with that image size. Now, if i change the size it only changes on the new posts / or re upload of the current featured images(which is too much to do by hand).
My Question is, is there a way to resize the uploaded images?
I've never used it, but I think the Regenerate Thumbnails plugin does that.