1
vote
1answer
37 views

wp_get_attachment_image_src() width and height boolean

I have the following code in my theme: <?php $size = 'large'; $postimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size ); $url = $postimage[0]; $h = $postimage[2] ...
1
vote
1answer
13 views

Wrapping images in tags based on size

I am making a site for a client where all the thumbnails on a page need to be styled differently than regular sized images. Right now I have a snippet of code I found that allows me to wrap every ...
1
vote
0answers
32 views

Scaling an image in a WordPress post

I am currently building a WordPress theme and when I add an image using the add media button, I'm able to choose a scaling percentage to allow the image to get bigger or smaller within the modal pop ...
1
vote
1answer
18 views

Large image size stuck on old value, even for new images

I changed the 'Large' image size in Settings > Media > Image Sizes from the default to max-width 586px. That was wrong, so I changed it back to max-width 1024px. However, the smaller size seems to ...
0
votes
1answer
22 views

Is wordpress compressing my images? if so, how to prevent it?

I am using 'featured image' fields in my post and the images are sized and compressed already but whenever I upload an image that has some text, I keep noticing the image reduced in quality ...
0
votes
0answers
30 views

Woocommerce: Setting featured image file size as a web suitable file size [on hold]

I have 200+ product images to upload to a WooCommerce site and they all look like they have simply been passed on to me in the original size they were taken in - with many being 5mb+. The issue I ...
0
votes
0answers
7 views

How can i resize/force every uploaded post image width to be 460 [duplicate]

How do I resize every uploaded post image to be always 460 width by whatever corresponding height?
0
votes
1answer
59 views

Generate fixed image sizes for different pages, eliminate sizes during upload

I've built a few sites in Wordpress and in general I'm quite pleased with all the possibilities it has developed lately. There's one main thing that is utterly confusing for end users; the sizes they ...
0
votes
1answer
39 views

How can i specify the size of the image rendered by the_content();?

I can do it manually like this: echo get_the_post_thumbnail($post->ID, 'large'); But how can i set the size of the image rendered by the_content(); to Large too ?
0
votes
0answers
22 views

How to force attachment size for every post

I created a custom size like this : add_image_size( 'my-size', 615, 9999 ); Is there anyway i can force the ATTACHMENT DISPLAY SETTINGS SIZE to be always ('my-size') for every attachment?
0
votes
1answer
21 views

Does WP create multiple images?

When uploading an image in WP, does it creating multiple sizes (and multiple files) of the image? If so, are they all loaded or just certain ones (which and why)? Meaning, if x images are created ...
0
votes
1answer
123 views

Fallback image size when using wp_get_attachment_image_src / full size compressed image

I am using ACF to pull images using ‘wp_get_attachment_image_src’ as such: <?php $image = wp_get_attachment_image_src(get_field('image'), 'large'); ?> <img src="<?php echo $image[0]; ...
0
votes
1answer
37 views

Exact image sizes

I am trying to define an image size of exactly 290 height x 180 width for all images uploaded to my WP site. I tried updating image sizes under Settings->Media->Image Sizes but these are only max ...
1
vote
2answers
170 views

images in the twentyfourteen 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 ...
0
votes
2answers
30 views

Extending site width according to the image size

The WordPress theme is for a comic reading site. Since image cannot be re sized because the text will be distorted, I need to extend the site width according to the image size in the post. Here is ...
0
votes
3answers
43 views

Retaining original image size

Since I have a website for Comic reading, if I use reduced image sizes, it will also reduce the text which will be difficult to read. I want to retain the image size. No problem even if it creates a ...
0
votes
1answer
31 views

Adjusting post width according to the image size

I am building a theme for a comic site. It seems some images are bigger than the post size. I need to resize the images according to the Original Image size. Can I achieve this through CSS? It doesn't ...
0
votes
1answer
36 views

Disabling auto-resizing of uploaded images

Whenever I upload a large image, it gets resized to the width of the post. This will be a negative feature for comic reading sites. I need to display the full width images, which I can resize when I ...
3
votes
4answers
303 views

Each custom image size in custom upload directory?

I want to upload my custom image sizes in custom folders. The folder should have the name of the selected width. For example: If I add these custom sizes... add_image_size('custom-1', 300, 9999); ...
-1
votes
1answer
33 views

add if statement to the featured image

I have a featured image. I want to add an if statement to the size. For example, if the featured image height exceeds 500px I want to add something. Is that possible ?
1
vote
3answers
130 views

How to resize images due to container width automatically server side/without CSS

Does anyone know how to resize the served images, so the image has a width due to the content containers width. I do not mean to resize the image via 100% width css, but instead resize the actual ...
0
votes
0answers
23 views

Is it possible to print kb size of an image attached to a post? [duplicate]

Trying to find a way to print kb size of an image attached to a post. Has anyone an idea how to do this?
0
votes
0answers
46 views

How to set a Maximum Image size to a Field in WordPress

I have a customized frontend form in WordPress that allows to set a featured image to a post before publishing it. I want to set a maximum-allowed "width" as well as a "height" to the "upload image" ...
1
vote
0answers
151 views

“Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine

Please take a look at this cicada photo - http://photo.aseev.com/stock-photo/cicada-exuviae/ - below you will see 5 thumbnails, all of them are squared, except one (a bug on white background). It is ...
0
votes
0answers
26 views

different image size in home

I have the home page in two columns and images of 312×100. The problem is that, when you go the category page, you see the list of posts but the images appear with sizes like the home, with 312×100. ...
1
vote
2answers
2k 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
0answers
175 views

Full size image option removing problem

I have removed the Full size image option from the media upload window see Code: function theme_t_wp_set_image_size_options( $sizes ){ $sizes = array( 'thumbnail' => 'Thumbnail', ...
1
vote
1answer
59 views

Can I force all uploaded images to be reduced in quality?

There is a blog where high quality images (300KB at 800x550) are being uploaded and embedded at Full Size. Wordpress will just use the exact uploaded picture when you embed at Full Size. This makes ...
2
votes
1answer
371 views

Resizing only featured images while uploading

I was taking a backup of my wp-content folder. But when I noticed size of uploads folder. I was astonished and each image used in my blog had 5 copies with different sizes in that folder. All these ...
0
votes
0answers
34 views

wp_get_attachment_image_src match smallest edge

I'm trying to get the minimum image source that fills the given size. wp_get_attachment_image_src(get_post_thumbnail_id(), array(180, 180)) gets the image which fits the size and not which fills it. ...
0
votes
1answer
70 views

Image resize using url parmater

I would like to resize image in my wordpress template using url parameter. Best example for this would be Wordpress's very own twenty Twelve theme. Following is link to image with width parameter in ...
0
votes
2answers
65 views

How to get the image sizes, in a function, as per the sizes mentioned in the media settings?

I'm making a custom function for my WordPress site. function mediumFeaturedImage() { if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink(); ?>"> <?php ...
1
vote
1answer
89 views

Change image size when inserting Media?

When you insert media with the media upload, it will generate images of several sizes according to the media settings. But sometimes I only need thumbnails. Other times I only need medium images. If ...
0
votes
2answers
189 views

WordPress keeps resizing my 947x947 image down to 500x500 (full-size option)

This is driving me crazy. The code for the image is: <img src="MYLINK" /> Yet it keeps resizing my image down to 500x500 from 947x947. How do I fix this? Also, it disregards the image map I ...
0
votes
1answer
182 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 ...
1
vote
2answers
139 views

Why won't these imported images show up?

I recently imported posts from another WP install, and everything seemed to go smoothly - except in specific cases where images are placed into a Post with the dimensions in the url. For example...we ...
0
votes
1answer
113 views

Custom image sizes are not used

I recently launched a new theme and regenerated all the thumbnails with AJAX Rebuild. All of these custom image sizes are defined in my functions.php as well as the individual template files in which ...
0
votes
1answer
5k views

How can I add a 'Click to Enlarge Image' feature, with the enlarged image opening in a popup?

I have several images of UI forms and tasks, that are quite large. I would like to display a smaller, 'thumbnail' image snf give the user an option to 'Click to Enlarge', and then display the fill ...
3
votes
2answers
157 views

Filter what image sizes get generated

I'm looking for a way to chose what images sizes get generated by image. With all the image sizes I have plus a lot of images, in the end I have a whole lot of server space being used up for nothing. ...
0
votes
1answer
102 views

Custom image size doesn't work

I'm developing my own theme. I'm trying to remove the default WordPress image sizes medium, large and full. I also want my own image size, vividflow-full-width. I'm using this Sumtips tutorial. At ...
1
vote
2answers
180 views

Dynamic-Image-Resize Plugin does not output anything

I'm having trouble using the "Dynamic-Image-Resize" plugin by "Kaiser Franz Josef". In my template I'm adding following code: $imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id( ...
0
votes
2answers
306 views

Are seven additional image sizes are too many?

I am developing a theme which uses different image sizes. So I will be adding 7 image sizes, are they too many? Could that break anything like the image size selector, other parts of the interface or ...
5
votes
2answers
381 views

Retina images - custom syntax for inserting images into post content

I am currently in the process of building a responsive real estate WordPress theme and I'm figuring out how to properly add support for HiDPI screens. I decided to use a JavaScript solution ...
0
votes
1answer
223 views

Use full size images in a specific gallery

Thumbnails are displaying as 100px however the full size is 130px which is what I want. I want this only in one specific gallery. Also would like to link each gallery thumbnail image to an external ...
0
votes
2answers
346 views

How to get image name, mime type, width, height, file size from post custom field?

What I need is some function to echo file name of image used in post like "image-file-name.jpg", or just "image-file-name". Also it would be great to be able to have even more information about image ...
4
votes
2answers
824 views

Set JPEG compression for specific custom image sizes

I use various custom image sizes (by add_image_size) and I have set my JPEG compression to 30% with this filter: function jpeg_quality_callback($arg) { return (int)30; } add_filter('jpeg_quality', ...
2
votes
2answers
1k views

Stop wordpress from creating multiple size images

I want wordpress to stop making multiple size images cause it's going to eat up my storage space. So I went Settings > Media and then set all the sizes to 0. When I uploaded a new image it still is ...
4
votes
2answers
565 views

Adding a custom image upload size and making it selected by default?

How can I add a custom image upload size with a width of 550px and make it selected by default in the Add Media page? Currently, there are 4 sizes available: Thumbnail, Medium, Large and Full Size. ...
1
vote
1answer
546 views

Automatically replace original uploaded image with large image size

As our users regularly upload ~6MB images to use on the website (and aren't too familiar with how to resize them first), WordPress stores the originals as well as resizing them to several different ...
6
votes
1answer
598 views

Changing JPEG compression depending on image size

Short. I want ''large' images compressed by 90%, and 'medium' to be by 60%. Has many af you know, sometimes larger images suffer from high compression, but other small images don't. This function ...