maximum image size
-
is there a way to globally set a max image size for posts and does anyone know what the Maximum Embed Size is that is set in Settings > Media?
Thanks.
-
Hi. I’m not concerned with the images.
I am concerned with the thumbnails that are getting cropped or stretched:
https://www.formpig.com/image/fishdogfish.pngI just want to find out if this can be prevented…
Yes, you should be uploading larger images, unless you only want to show thumbnail sized images.
If you have a thumbnail sized image in a post, and that image is linked to the original image you can click the thumbnail and view the full sized image.
In your case; However, you’ll be viewing the image in the same size as the thumbnail, which is a useless and redundant method of displaying images. I mean why click on a thumbnail only to view it again in the same exact size?
Are you uploading 310 X 150 images? or is F8 Static resizing your uploads?
Hi. I’m not concerned with the images.
I am concerned with the thumbnails that are getting cropped or stretched:
Sorry, but I don’t see any thumbnails being cropped or stretched. :/
Hi. Thanks.
The link posted above shows part of the image of franz reuleaux as a /cropped/ thumbnail. All we see is the guys beard.
This thumbnail is being cropped.
If I uncheck the crop checkbox this image will instead be stretched…
No?
all the images in this screenshot are thumbnails that are being cropped:
<a href=”
https://www.formpig.com/image/fishdogfish.png”>https://www.formpig.com/image/fishdogfish.pngO.K. here are your image sizes, the first one is the full image(only shows that way in IE, Firefox shows it the same as the thumbnail).
The second is your thumbnail.
formpig_professor-franz-reuleaux_zopke-218×300.png
formpig_professor-franz-reuleaux_zopke-310×150.png
You have a bit of a dilemma; Don’t you?
The link posted above shows part of the image of franz reuleaux as a /cropped/ thumbnail. All we see is the guys beard.
This thumbnail is being cropped.
If I uncheck the crop checkbox this image will instead be stretched…
No?
I don’t know, I haven’t view it that way.
If you have your theme set to “Scale” your images, then it will be whatever width you have set in the functions.php, and the height will be proportional to that.
So you should see the entire image only a scaled version if the original is larger, or larger if the original is small than the width you set.
If you would set your blog so that it stretches I could see what you mean if it’s showing up live. All I have seen though is the png you posted with the professors head cropped off, which tells me you have a height limit on the thumbnail view, otherwise, since the image is taller than it is wide, it would display a taller image with the professor’s head intact.
Try setting this
$GLOBALS['content_width'] = 218;
And leave the checkbox unchecked.
You might find a plugin that will help.
Or you can write your own PHP to scale your thumbnails proportionately and display them correctly regardless of size differences.
Here is a link to the Codex for image downsizing. You’ll probably want it modified as below to get a thumbnail image.
I wish I were better at PHP, then I could tell you how to implement it into your theme. You might already be a step ahead of me though, good luck.
function wp_get_attachment_thumbnail_url($id){ $thumbnail_array = image_downsize( $id, 'thumbnail' ); $thumbnail_path = $thumbnail_array[0]; return $thumbnail_path; }
are there any problems if i upload 310 X 150 images ??
Hi Fish,
Thanks so much for your help. I want to really communicate that I appreciate your help on this.
OK if I study this in the next day or so and see if I can make progress with it?
(Can I just ask you now if I am correct in thinking that you upload your images /once/ and then use the WP interface (or the PHP code) to then have this /one/ image show up in different places in the Theme, right? I mean, you don’t ever upload two sets of images – one for the thumbnail and one for the larger post image…)
Thanks!
– Jonathan
Hi Fish,
Thanks so much for your help. I want to really communicate that I appreciate your help on this. OK if I work on this in the next day or so and see if I can make progress with it and then post back?
In the meantime I am going to switch the site to not crop images and you can see the stretching behavior of this theme.
Thanks!
– Jonathan
Hi Boss.
Thanks again a ton. Sorry for all the back and forth.
I have unchecked the Crop box and resampled the thumbnails.
These are now showing up as stretched instead (of cropped) the Category lists.
Looks like one of the mods has been kind enough to be willing to get in to my site and see if something is going on or if this theme has to /either/ stretch or crop thumbnails (which still seems bizarre if not an outright bug).
Will post back as I am sure there is a tone about this issue that I am not quite up to speeed on.
Again a ton of thanks as I try and get this perfected.
– Jonathan
- The topic ‘maximum image size’ is closed to new replies.