The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
13 views

How to replace all images in all posts and pages with a different size?

I'm about to reboot an old blog of mine and therefor I'm creating a new theme from scratch. Before I'd align pictures left and right, because it seemed good. But now I want to make it much cleaner and ...
0
votes
0answers
11 views

wp_get_attachment_image_src() regenerate custom size images everytime

i try to make simple gallery from post's attachment images with custom sizes. i wrote simple loop: $original = array(); $gallery = array(); $gallery_min = array(); $imgs_args = array( ...
0
votes
0answers
4 views

Custom Image Sizing in Content Editor Uses Small Image

I'm trying to use the custom image size option in the Add Media part of the Content Editor, and when I do, it uses the Medium image as the base for the resizing, which results in blurry images if the ...
0
votes
0answers
14 views

Image jumping/resizing on pageload

Trying to firebug exactly what is causing the image on this iosslider image to appear to jump left/reduce size on pageload. Been messing with the CSS but can't seem to pinpoint it and would appreciate ...
0
votes
2answers
14 views

Delete images of a particular size

I inherited a WordPress site from a previous developer who had gone a little crazy with image sizes. As I was uploading it to the server I noticed there were at least 10 image sizes for every image. ...
0
votes
1answer
19 views

Function the_content

For some reason on my attachment page template (http://capa.furniture/?attachment_id=1494) I am getting the url of the reduced size image. I do not know why. I am not getting the thumbnail full size ...
0
votes
1answer
23 views

Unrestricted height thumbnails

I have set my default thumbnail size in settings > media, however as I see it you Have to add a value. However, I'd like to specify a width, but allow for an unrestricted height. For instance, both ...
0
votes
0answers
36 views

Minimum Image Dimension not apply to every image

I found a way on this site to restrict authors from uploading images if they are smaller then specific dimensions. This worked perfectly for me, till I reached the next problem; I need a workaround ...
0
votes
2answers
23 views

Inserting image into post with different image size

I have a custom WordPress theme that I have made myself. When I insert an image into a post I only get the option to add the full size image (see below screenshot): In Settings > Media I have a ...
0
votes
1answer
76 views

how to put image and text on same line [closed]

trying to image and text on same line but images always stand up little bit above after posting my article.But while my post in draft is,the image is not rebellious What could i do to arrange images ...
0
votes
1answer
48 views

Add Image Size for one Media Category Only

add_image_size is great, but if I want to create a swatch size for colors/patterns on my site, I don't need the swatch size for all of my other images. Is there any way to apply image size by media ...
0
votes
1answer
11 views

Specify which image sizes are created on a per image basis

I have a custom post type that requires different image sizes than other posts. Right now the images are added via wp_insert_attachment, a thumbnail set via set_post_thumbnail, and images are resized ...
1
vote
3answers
81 views

Responsive Images

Is there a native function to display the correct responsive image size for post thumbnails or gallery images depending on the screen resolution? Normally I'm using: 1.Custom image sizes: function ...
0
votes
0answers
23 views

Different sizes for featured image for social networks

I'm using Twentythirteen on my blog, and the article has a featured image of 406x270 pixels. Since the social networks uses bigeer images when sharing, the image of my article gets blurred and not ...
1
vote
0answers
89 views

Crop image to horizontal or vertical by code based on image size

my client asked me to create gallery(WP gallery) based on this site. the problem here is that i need to crop images based on image size before inserting the image in the Media library. now i using ...
3
votes
3answers
127 views

Can WordPress crop only the post thumbnails?

I'm using the post thumbnails feature of WordPress and I have several sizes defined in functions.php. Everything's fine, it works great with Crop Thumbnail to crop them perfectly. I have a question ...
1
vote
0answers
116 views

Can't generate thumbnail images

Having a very strange problem with this site I recently took over hosted on RackSpace. Seems whenever i upload a new image, it doesn't generate different sizes and I'm trying to get it where it will ...
0
votes
0answers
120 views

Set image dimension for WP_Customize_Image_Control images

In the customize page for the current theme the Current Header's Choose Image dialog shows - a "select and crop" option But the custom WP_Customize_Image_Control shows only "Choose Image". Is ...
1
vote
5answers
504 views

Display height and width properties with the_post_thumbnail() or related function

Problem I want the height and width properties in the img element of the Featured Image for a post, page, or custom post type. Environment I have a custom theme based on the BlankSlate theme. The ...
3
votes
2answers
117 views

Which are precisely the predefined image sizes?

Wordpress let you choose between thumb medium large and full size when uploading and inserting an image into a post or a page. The meaning of full is obvious. But how WordPress set size for thumb (I ...
1
vote
1answer
54 views

Featured images get shrunken

While uploading featured images, the problem I am getting is, all images are shrinking automatically. I want to retain the original image. Check this example. All staff memebers images are shrinked ...
0
votes
0answers
25 views

Show custom image size smaller in editor

I have a custom image size which editors should be able to use in their posts. I already managed for the custom size to show up in the add image dialogue, so that part is fine. On the destop version ...
0
votes
2answers
77 views

get custom image size

In a post I want to place a custom image. how do i place a thumbnail with link to original image? below is my current code. <a ...
0
votes
0answers
58 views

Add custom image size to shortcode

I am using WP-Views by WP-Types, to list WooCommerce category images in a page. WP-Views doesnt support category images by default, so i found this code to make category images available by shortcode. ...
0
votes
1answer
39 views

Changing image size displayed in wordpress twenty fourteen theme

I am using twenty fourteen theme with with the extender plugin. I increase the content width from the extender plugin to something around 532 px. It worked fine. But the posts containing images (even ...
1
vote
1answer
55 views

Display attachment resolution size

Seems rather easy, but there is no article I can find on the web or in Wordpress about it. How to simply display (in the current post) the full image size (of the attachment), in pixels? thank you
0
votes
1answer
271 views

wp_get_attachment_image_src() returning incorrect width and height [duplicate]

I am trying to return the src, width and height of a cetain image: $img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large'); This is returning the expected array but with incorrect ...
0
votes
1answer
184 views

Why is wp_get_attachment_image_src returning wrong dimensions? [duplicate]

I am using wp_get_attachment_image_src to construct the srcset attribute of an img tag. In that attribute I want to output a comma separated list of image urls along with the image widths. Using the ...
0
votes
0answers
19 views

Blogger to wordpress, images downsized

I just migrated my photo blog from blogger to WordPress using import tool. The issue is that all images in all my posts have been downgraded i.e. the image name contains the small dimensions like ...
0
votes
0answers
123 views

Scale image down or resize image to fit on featured image thumbnail

I'm having a problem with the image scale. it doesn't fit meaning it crops to fit the container. how do you set it to resize it proportional with the container? if someone can help, please do. still ...
0
votes
1answer
76 views

How can I automatically resize up images to fit into all of my registered image sizes

I need Wordpress to create versions of each image in ALL of the registered image size, even if the registered image size is larger than the uploaded file. For example, if I have the following ...
2
votes
1answer
152 views

Generate image size, based on the image-orientation

I am working on a fairly complex redesign of a wordpress project. Currently I am working on the image implementation. The site is very image heavy and I want to provide the optimal image for each ...
0
votes
1answer
445 views

How To Delete Desired Image Sizes From wp-content/uploads?

My default media setting in WordPress blog is 150x150, 300x300, 1024x1024 respectively for thumbnail, medium, large images. Now I am designing a theme that need different size thumbnail images to show ...
1
vote
1answer
102 views

Thumbnails produce unwanted gray pixels on white background [closed]

Is there a workaround for producing QUALITY "Featured Image" thumbnails of different sizes? WordPress produces compressed thumbnails that contain grey pixels where it should be a completely white ...
3
votes
1answer
174 views

Create image formats with different qualities when uploading

I'm trying to come up with a solution where the generated image formats cover both responsive and high-resolution aspects when uploading a new item in the WP admin. I've put together a set of formats ...
0
votes
1answer
40 views

Thumbnails different sizes

I'm using the following code to pull the featured image from a post category. I have repeated this code another 3 times in my template to add different categories. I would like all the images to be ...
0
votes
0answers
273 views

Google Page Speed Insights - Optimize Images

The top recommendation from Google Page Speed Insights is to optimize & compress images. How do I do that? It lists dozens of images and that would be practically impossible to do it all manually. ...
0
votes
0answers
120 views

Gallery random image sizes

I'm trying to get a masonry layout to work with the standard [gallery] shortcode. This is the code I have in my post-gallery (for the gallery post-format). echo '<div class="zephyr-gallery">'; ...
0
votes
1answer
65 views

Make all images displayed in single.php a certain size

I’m working on a fashion blog with a lot of images. I’ve imported all posts from Blogger to WordPress and it seems to have left me with images which have a size added on to the end of their src: ...
0
votes
1answer
147 views

Generate responsive post thumbnails of same size

I am using a function to display related posts in my wordpress theme with their thumbnail. I am using uikit to make my theme responsive. Uikit offers a grid feature similar to the bootstrap one, and ...
2
votes
1answer
62 views

Custom image sizes only for thumbnails

I solve one problem, I use in template several different sizes of images (add_image_size), but I use them only for thumbnails, it is completely unnecessary to create these sizes for each image ...
0
votes
2answers
96 views

add_image_size() width not actually working

I've been attempting to add an image size to my code, for an image that needs to be 708px wide. Height can be variable. I've added the code this way: add_image_size( 'full-blog-width', 708 ); ...
-1
votes
1answer
92 views

Is there a Wordpress Plugin like Imsanity that keeps high resolution originals? [closed]

I'd like to show lower resolution photos on blog posts and their previews on the main page, but when clicked upon, they should still link to the full resolution version. Is there a plugin to do that ...
1
vote
1answer
58 views

Wordpress Media Image Manager — Creating Lots and Lots of Odd Sized Images

This is odd. Whenever I upload an image, I get a whole myriad of generated files. If I upload test_image.jpg (which is 971x698 pixels in size) I then get the following ten generated files: ...
3
votes
1answer
131 views

Image width tag is less than the image pixel width - why?

I have been reading this morning about images uploaded via the Media Library in WordPress and I thought I had understood most of it. But there's something I'm confused about. My understanding is that ...
0
votes
0answers
134 views

Remove inline width and height definitions from post images (single.php)

I have exported around 300 posts out of Blogger and into WordPress. The posts are mostly made up of images as it’s a fashion blog. Everything went great import-wise but the problem is that all images ...
0
votes
0answers
23 views

Generate images according to proportion of original image

I'm looking into if it's possible to generate images with different sizes depending on the proportions of the original image. For example. If the uploaded image has a proportion 4:3 it should ...
11
votes
1answer
204 views

Reject upload of wrong-sized images using the Media Uploader

I'm working on a super-strict setting for adding images to Custom Fields in the Post Edit screen. My optimal scenario would be to add a a Custom Error message when the user tries to upload an image of ...
0
votes
0answers
15 views

Importing images from blogspot to wordpress

The import process is easy enough and everything is imported correctly. The one thing I can't figure out is how to change what size image gets imported into the posts. The image that gets imported is ...
1
vote
1answer
374 views

Get total number of pixels, size in megapixels and aspect ratio based on image width and height?

Is it possible to show total number of pixels, size in MP, aspect ratio of current featured image? For example I use this to echo image dimensions of full sized featured image of current post. if ( ...