Questions tagged [thumbnails]

Automatically generated smallest size of an image.

3
votes
0answers
78 views

Saving WordPress generated thumbnails in a subdirectory

I.e. an uploaded image image.jpg is stored in wp-content/uploads/2016. WordPress will generate thumbnails named image-150x150.jpg, image-300x300.jpg, and image-1024x1024.jpg in the same directory. Is ...
3
votes
0answers
40 views

How to create thumbnail of different files?

I am storing my uploads in a separate folder and using separate table to save the location in database. I have gone through WP_Image_Editor , wp_image_editor_gd and wp_image_editor_imagick . I also ...
2
votes
0answers
39 views

Save image as featured image

I am using WordPress 4.9.7 and I am trying to develop a plugin that downloads an image from a website and saves it in the media library and sets it as featured image on a post. Find below my full ...
1
vote
0answers
137 views

Remove product category placeholder image (Woocomerce)

I'm trying to get rid of placeholder product category images on the shop page. Right now I'm using this code to add a .no-image class to products that don't have an image so I can style them ...
1
vote
0answers
12 views

Thumbnail position + size

Good afternoon, I'm currently having a home page with a header and a footer. I would like to show the last posts there with a thumbnail plus an excerpt under it. The thing here is that I want to ...
1
vote
0answers
476 views

Change thumbnail image depending product category

Hello I would like to show my last product image as a thumbnail in specific category pages. I would like to keep my general shop page displaying the first image as thumbnail but show the last one ...
1
vote
0answers
279 views

Caption not showing with Woo commerce thumbnails

I am new with woo commerce and i have a task for single product page. I am editing woo commerce > templates > single product > product-thumbnails.php and trying to display caption with woo commerce ...
1
vote
0answers
381 views

hook wp_generate_attachment_metadata does not read all the attachments

I am using GD libraries in order to modify the uploaded attachment so I can have always the crop at the same squared dimensions with white stripes top/bottom or left/right if the image is not squared ...
1
vote
0answers
33 views

Disable image thumbnails for only one upload folder

I have a form that is uploading resumé files into a custom folder at /wp-content/uploads/resumes. While I do want thumbnail sizes generated for the regular folders, I DO NOT want sizes generated for ...
1
vote
0answers
18 views

Fixing image names for a site being restored

Fixing image names for a site being restored The WordPress site went down last week and is being restored. When a image(image1.jpg) was uploaded a week ago using the back-end of WP, it likely was ...
1
vote
0answers
58 views

Inside text editor my preview gallery images are in full size

As I described in the title in the edit post page and inside the editor when I submit a new gallery the thumbnails are in full size. I suspect that this error caused when I unset the default "...
1
vote
0answers
78 views

force feed readers to pick atom version

The reason i want to do this is Feed versions of my Front-page (rss and atom) are different! that's right. i have placed a function code to put preview images in feed but looks like it only effect on ...
1
vote
0answers
501 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 ...
1
vote
0answers
125 views

Change Media Library thumbnails for non-image files to include the post title instead of the filename?

We are migrating an outdated custom CMS to Wordpress and all of the files have a corresponding title which is great, but Wordpress chose to show the filename, by default, in the grid view, which sucks,...
1
vote
0answers
1k views

How to make thumbnails of uploaded animated gifs NOT animated

I am having an issue where I want the thumbnails of my animated gifs to NOT be animated. I tried to talk to hostgator about helping with this issue and they simply said that I must find a solution ...
1
vote
0answers
96 views

What is the best way to store thumbnails for a non-image attachment?

I'm in the process of extending Document Gallery to support generating and displaying thumbnails for each document. I've got thumbnail generation under control, but I'm curious as to what best ...
1
vote
0answers
446 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 ...
1
vote
0answers
582 views

How to create resized versions of images added with wp_insert_attachment

I'm uploading images to my media gallery and setting them as my post's featured image, which is working quite well. I'd like to generate thumbnails of these featured images, in the same way that ...
1
vote
0answers
684 views

Custom Walker for wp_list_categories

I need some help with making of one Walker Class. Now I’m having a menu with categories and in the dropdown there are some subcategories. The menu is something like that: <div class="navigation"&...
1
vote
0answers
40 views

How do you alter the default WordPress thumbnail?

I have selected 'thumbnail' under 'Apply changes to:', however, nothing seems to happen in either the media library or on the site. I've also tried regenerating the images after making changes, but ...
0
votes
0answers
12 views

srcset for images does not work

I have a web store and I recently updated the theme of the site, when I see the images of the store were not displayed, inspecting in the browser console I realized that the image in "src" was correct,...
0
votes
0answers
20 views

How to view exact image dimensions of a media in Admin view?

I know programmatically we can see the attachment sizes in templates, but I'm looking for a way to see the precise dimensions of the resized medium, large, xlarge sizes too. No plugin seems to do this,...
0
votes
0answers
39 views

Thumbnails regenerate wp_generate_attachment_metadata

I'm importin pictures via FTP and create custom recorss in mySQL via insert. I'm trying to make a cron job to regenerate thumbnails. This is what i came up to.. but i doesnt work. add_action( '...
0
votes
0answers
15 views

Featured image size always cropped bottom

Good day! I am trying to add a featured image to my post but every time I add a featured image, the lower part gets cut off. Original size is 300x300 pixels. If the windows size gets changed, ...
0
votes
0answers
38 views

Can the WooCommerce image sizes be removed?

Is it safe to remove_image_size() on WooCommerce's built-in image sizes (woocommerce_thumbnail, woocommerce_single, woocommerce_gallery_thumbnail, shop_catalog, shop_single, shop_thumbnail)? I'd like ...
0
votes
0answers
78 views

Force WordPress to strip/remove EXIF/IPTC metadata when resizing thumbnails

I am using Imagick with WP 5.0.3. Since version 4.5 WordPress use Imagick to create/resize thumbnails and it keeps EXIF/IPTC metadata (using GD, metadata are removed). WordPress keep EXIF/IPTC ...
0
votes
0answers
95 views

Woocommerce shows product images in the wrong size

All products in my website have 200x200 featured images. But in catalog images are shown in 750x750 (sooo blurry) instead of 200x200. Source code of catalog page: <img width="200" height="200" src=...
0
votes
0answers
21 views

How to filter on placeholder image

I'm using the woocommerce-auto-category-thumbnails plugin to replace a blank category thumbnail with a random thumbnail from one of the products in the category (or child categories). It is supposed ...
0
votes
0answers
12 views

How generate thumbnails with background job

We have a situation, there are 40 images size registered, thumbnails are being generated as soon as the image is uploaded. This is causing a delay for 30-40 seconds on uploading+thumb-nailing. What ...
0
votes
0answers
23 views

Storing video thumbnails

I need help. When I add new post with video I want to download the thumbnail of the video to wp-content/upload. I tried using wp_handle_upload() function but i am not sure if it is correct and i am ...
0
votes
0answers
36 views

Why image Thumbnail url is not displaying with custom size?

The website has only one thumbnail size 375x211. I want to show this size thumbnail image at site homepage so that when I copy this image it only copies in 375x211 size, not in full image size which ...
0
votes
0answers
30 views

How can i auto generate thumbnail Image for Video in WordPress

I want to auto generate thumb of the video which is in media of WordPress. What I want is when I press publish button then it is set as a featured image of the post. Any idea how can I to do this?
0
votes
0answers
42 views

Delay WordPress auto thumbnails generation for specific image size i.e. 'medium'

I am trying to delay WordPress auto thumbnail generation for specific image size only i.e. 'medium'. As I am using GD library to print Post Title on the image automatically, and it replaces the ...
0
votes
0answers
88 views

How to tell woocommerce slider to use thumbnails

I am using the most recent wp and woocommerce. I have a carousel slider on my frontpage which is listing my featured products. In order to decrease the loading time, the carousel should render "...
0
votes
0answers
1k views

Blank image thumbnails in media library

I copied one website to other domain. i am using avada theme in my new domain all images show as blank thumbnails in admin but in website all images are show i checked permission of all folder and ...
0
votes
0answers
20 views

Best way to manage theme images

I am currently wondering what is the best way to let the user choose between a certain number of thumbnail size for the shortcodes I am building. add_image_size function is the simplest way but ...
0
votes
0answers
1k views

How to install ffmpeg extension for php 5.6.25 for wp video posts plugin?

I have a wordpress project in which I need to install the plugin WP Video Post For this ffmpeg needs to be installed. I have wamp installed on my local wamp server and the version I am using is: ...
0
votes
0answers
3k views

Force Regenerate Thumbnails Not Working

Alright so I'm writing a new theme for my blog and i've decided to change the size of large media from 640 to 820. I have used the force regenerate plugin and updated the media settings so that large ...
0
votes
0answers
31 views

Why doesn't Wordpress make thumbnails for videos?

I noticed videos in the media gallery always show as an icon preview (unlike files in a file manager, which show a thumbnail.) Considering that WP integrates Imagemagick, which apparently can extract ...
0
votes
0answers
125 views

Serving resized images on a responsive site without making 2x copies

new here. I'm sure this question has been asked numerous times, but here we go. I'm a blogger (not a coder) and recently started adjusting my responsive site for retina displays by uploading very big ...
0
votes
0answers
103 views

How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can't add a featured immage?

I have developed this custom WP theme: http://www.asper-eritrea.com/ As you can see into the post excertpt (in the home page) it is showed the first immage into my posts. To do it I use this code: &...
0
votes
0answers
77 views

3.9 Galleries & Thumbnails

I'm using WP 3.9.1 and have added a gallery (Add Media ->Create Gallery -> pick images -> Gallery Settings: Link to Media File.) That works, almost. The problem is that I need the gallery to use ...
0
votes
0answers
209 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 ...
0
votes
0answers
1k views

Why are my 'medium' images the wrong size

In my media settings I have: Thumbnail size 131 x 87 Crop thumbnail to exact dimensions: yes Medium size 260 x 1000 Large size 560 x 800 But the_post_thumbnail('medium') outputs an ...
0
votes
0answers
257 views

Retrieve image from Open Graph of an external URL and set as featured image

I would want to retrieve an image of an external link in the content of a post, as to feature it as a thumbnail, sort of how a Facebook status or other similar things would look. I guess that an Open ...
0
votes
0answers
83 views

Thumbnails have stopped generating correctly

I had thumbnails set up and working perfectly on my site. However, I wanted to change the size and did so through the functions.php file (although I see this is now an option in Settings -> Media). I ...
0
votes
0answers
79 views

How to add multiple versions of the same featured image for SEO reasons?

I am currently writing a plugin that optimizes category pages in WooCommerce. The idea behind it is that a product can appear in multiple category pages and for every category page it appears in, ...
0
votes
0answers
827 views

Delete associated thumbnails when calling wp_delete_attachment

I have a somewhat straightforward script that allows users to upload their own avatar from the front-end. Another script allows them to delete their avatar, before uploading another. The image/...
0
votes
0answers
333 views

get_the_term_list & url

I have 2 custom post type and i want to link them together with an url from the first one and a image from the second one. I can get the title and the url of my taxonomy like that : ( CPT = '...
-1
votes
0answers
24 views

Weird moire / stripes / pattern in PNG alpha channel / transparant - only on uploaded and resized png images, not in original uploaded ones

I uses the default upload script / media library from Wordpress (and Woo). But the resized images show weird pixels in the transparant part of the PNG. This images below is a transparant png; (also ...