The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
9 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
45 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
9 views

Help change portfolio image gallery properties? theme abandoned suddenly :( [closed]

I'm so helping for some help - I had only a few things to do before launching and the theme creator seems to have gone dark. No content on the theme home page, the support forums or the ticketing ...
1
vote
3answers
580 views

Images in the Twenty Fourteen theme

How and were do I change the size on the sticky post images and the other images in the theme twentyfourteen? I would like 8 sticky post images on the "front page" instead of 6 and I want them in a ...
1
vote
1answer
41 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 ...
1
vote
1answer
45 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
288 views

How to get meta value in wp_attachment_metadata

I want to get wp_attachment_metadata in my own way. I want to separate the sizes (Thumbnail, Large, Medium, Small). The meta value on database looks like this: ...
0
votes
0answers
322 views

I am trying to get metabox image with custom size

I am trying to get meta box image with custom image size. i used this code to get image but image is not displaying. <?php $img_src = get_post_meta( $post->ID, 'project_options', true ); ...
0
votes
0answers
22 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
22 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
218 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 ( ...
1
vote
1answer
43 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
56 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
1answer
54 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
0answers
14 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
34 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
39 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 ...
0
votes
1answer
64 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 ...
3
votes
1answer
146 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 ...
3
votes
2answers
4k views

set_post_thumbnail_size vs add_image_size

What is the difference between set_post_thumbnail_size and add_image_size? Is set_post_thumbnail_size for all images, and add_image_size for sizing images individually? Thanks.
0
votes
1answer
26 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
149 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. ...
3
votes
4answers
4k views

Resizing all images

I have just changed the theme on my blog, and because of a small page width, it breaks the layout. Most of my earlier images (attached in posts) are around 600px in width, and now I need to resize all ...
0
votes
0answers
100 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
38 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
54 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
46 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
62 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
60 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 ...
11
votes
1answer
181 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
1answer
39 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
80 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
70 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 ...
2
votes
1answer
4k views

No Thumbnails Generated

I setup WordPress on my own server and it's up and running...one thing that I have noticed is that WordPress doesn't generate any images I upload. Usually when I upload an image through WordPress it ...
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 ...
0
votes
0answers
10 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 ...
0
votes
2answers
49 views

the_content() brings the medium size image [closed]

So I have the problem, the image I want to dispaly in post is not big enough and in my preffered size it gets bad quality, then i noticed that is not the default size image returned it's medium size ...
0
votes
1answer
80 views

Is it possible to get feature image url (full-size) from an image url of smaller size?

Supposing that we know nothing except the url of image (smaller size e.g. 150x150) http://xxx.com/wp-content/uploads/2014/06/test-image-150x150.jpg What is the best way to get its full-size image ...
0
votes
1answer
28 views

get_intermediate_image_sizes() returning different values depending on is_admin()

I have checked the code of the "Simple Image Sizes" plugin and found out how "they" read the available thumbnail/image sizes. However when I use the get_intermediate_image_sizes() function in a ...
0
votes
1answer
308 views

How to use getimagesize() of image upload?

I need to check the resolution of an image I want to upload via media box, and then upload it into a custom directory. As a starting point I used part of the code from How Can I Organize the Uploads ...
0
votes
1answer
109 views

add_image_size() and uploading the exact size leaves 1x1 image in uploads

I've added an image size of 370x150 which works, but if I upload an image to those exact dimensions get_post_thumbnail() no longer works as expected. If I look into my uploads folder I'll have a ...
0
votes
1answer
260 views

Change attachment inside the_content using filters

I am in search of a snippet or function that will filter the embedded images inside a post to a custom size I have defined in functions.php. Here is the scenario: A client uploads and add any ...
0
votes
0answers
19 views

How do I adjust/remove img widths when embedding posts in a narrower external site?

I have a blog on a PHP site i.e. http://mywebsite.com/blog/ and want to embed complete posts in a page on http://mywebsite.com/ include('blog/wp-load.php'); $post=get_post($postid); ...
0
votes
2answers
80 views

Remove image height/width attributes from Image Widget

The Image Widget includes width and height on the images which I've unsuccessfully have been trying to filter out so I can have fluid width. I've tried the following, which seems to be the most ...
1
vote
0answers
107 views

Clean up images, delete unused image sizes attached to a post type

I found this post: How do I delete all generated images from my server except those currently used in posts which describes how to delete all image sizes but the original uploaded image file. I need ...
0
votes
1answer
103 views

Is it possible to maintain image aspect ratio when scaling images?

I'm using a theme which displays a grid of images, but it only works with landscape images at the moment (with portrait images, people's heads are cut off). The theme uses custom featured image ...
0
votes
0answers
81 views

How to make an image bigger with wp_get_image_editor

I'm trying to programmatically increase the size of images that are uploaded. I want to double the size of each image. The code I've written so far is: $pathDirectory = dirname( $imagePath ); ...
0
votes
1answer
30 views

Remove the height limit on wordpress 3.4.2

I have problems when insert images on my pages. I have a image of 1113 × 731 and I upload it to my wordpress, when I go to Add Object popup, the Full size of the image mode is of: 950 x 342. When I ...
0
votes
1answer
87 views

(Dynamically) Decrease the actual image size for downloads

I am using feedburner (give it the url of my RSS feed). Each of my feed item have an image, is there a way to lower the actual image size so that people dont have to download the real size? EDIT FROM ...
0
votes
0answers
59 views

get the post thumbnail returns the full size

The function get_the_post_thumbnail($post->ID, 'thumbnail'); not always returns the thumb size of the image (which is 100x100) for some posts it does but for most of them it doesn't. Even though ...