This is the problem on my site.
Suddenly 5000 thumbnails disappeared from my server. The files are not there.
Most of them are from 1 of 2 sizes: either 0x550 or 550x0.
I've tried regenerating them with the available plugins (AJAX Thumbnail rebuild, etc). Almost 3000 were created with the right size.
That leaves me with 2k images missing.
Here's the thing.
If I edit a post that contains the embeded image, and click the "edit" button on the image itself -which obviously doesn't show but an error square takes it place-, when the lightbox shows up, the image is then re-created at the right size.
So, since all the plugins failed the only option now is to recreate each image by editing it on the post itself.
I already have the URLS of the missing images thanks to a 404 error checking plugin.
So basically I can take the URLs and extract the original image name and width/height from there. But how can I manually create the thumbnail file using that information?
Thanks for your help!
Related
I am using Wordpress and the Elementor theme. When I upload images via the Image Box tool, the image shows for a few days, then at some point down the road, the image file names changes on the server and the image is then broken on the site.
On the server, I can see the original image, and then some sort of image size numbers are added to the file name such as 150x150 or 1026x768).
I understand that Wordpress sometimes resizes and adds images, but I have gone into images and entered "0" in setting to prevent it from doing this. I have also gone into functions.php to remove any re-sizing issues, but there was no code related to resizing there.
That's not Wordpress doing it, it's your theme..
Well it turned out to be a server load issue. The shared server couldn't handle the requests we were making daily, which affected our image uploads. If anyone else has this issue, upgrade to a dedicated server.
I have Mangento Wordpress integration in my webshop and the blog images aren't being loaded, i tried changing the permissions of folders but it didn't work. Tried a lot of research on this problem but turns out no is having it. Even when i upload the pictures using media uploader it shows up like this (the picture doesn't show) and when click insert, it insert a broken image icon.
Have you uploaded images in correct path as per your website coding, The most issues related to images is that images doesn't exists in their path location that is mentioned in code. You should check the error logs for the same.
When attempting to share a page on FB, many images seem to only appear AFTER running the page that contains the image through the debugger first. Additionally, the debugger seems to throw different errors for the same page in some cases, even though I've made absolutely no changes to the page. Sometimes it tells me the image url cannot be found, and after clicking on "Scraped URL:" or "Graph API: the image url is found and the image then appears in the debugger?! However, nothing seems to happen consistently and it is very difficult to replicate these issues.
I tried unsuccessfully to post the code here, however, I'm using a modified version of a script provided by Chad Von Lind (http://vonlind.com/?p=539).
Sample pages (that did not display an image until after they were submitted to the debugger):
http://greatmomentsinparenting.com/photos/warning-parents-keep-out/
http://greatmomentsinparenting.com/photos/12-hours-in-a-car/
I don't understand why the images appear sometimes, and not at other times. Is it a caching issue? Does it take time for the image to show up in the cache for a newly published page? Can I force FB to cache the image on the first try? Or is it because I'm using a dynamic image url? And by the way, the image sizes are 203x203 pixels.
Thanks!
It's media temple. I have been working with them for weeks to fix it.
Facebook 503 502 Same html different servers different results
I ran a Mogrify script on my server and resized about 1000 images. That went fine.
However when I started editing pages in Wordpress I noticed the images all looked very odd. Thumbnails for example weren't sized correctly and looked like they had been resized incorrectly.
I checked some images in the media library and saw that their metadata showed the old resolution, before I had resized it.
Is there any way I can have Wordpress go through and update its media library with the correct image sizes?
Problem is WordPress has its own way of dealing with image sizes. And it's not only the metadata and other database info, the various versions that WP generates has the size suffixed to the file name.
You will probably need to use add_image_size in your theme's functions.php and/or adjust the Media Settings in the administrative panel.
After that, run the plugin Regenerate Thumbnails. And regarding its name, I'll quote the plugin author:
Anything that is not the fullsize image is a thumbnail. Some
thumbnails are just bigger than others. My plugin re-makes all of
them.
PS: please note that WordPress questions are better fit here: http://wordpress.stackexchange.com
for some reasons the images I upload to my Drupal website are downsampled.
For example the image I'm uploading is 857x947
I've checked the following settings:
- the size of the CCK ImageField: 420x840
- the size of image cache used to re-sample the image: 420x840
Image Toolkit: Compression: 100%
I'm using cropping functionality. But I'm not dragging a small area, just almost all the original image is selected.
What am I missing ? Maybe php is compressing the image while uploading it ?
Thanks
Just to be sure that it is not caching try to clear all Drupal caches and your browser cache as well.
Then check if the imagecache preset you're using really isn't containing any scale action, just a crop action. To be sure, again just flush the imagecache preset and check the folder that there is no old, wrong image left.
Then go to your content type -> Manage Fields -> your picture field and check if the maximum resolution in there is set correctly.
I'm not aware of any other steps that downsample an image, if you don't have any other image-related modules installed. You wrote that you checked theses things, but most likely one of those steps is responsible.
By default Drupal resamples uploaded jpgs to 75% of their original quality.
Change it in this configuration page
/admin/settings/image-toolkit
Also I noticed that Image Magick library gives better results than default GD, but depends of the format of the image, etc.
Even if you do not use any imagestyle effect and whatever the setting at /admin/settings/image-toolkit the image will always be altered, see https://drupal.stackexchange.com/questions/246398/image-derivative-size-different-from-original-even-in-absence-of-any-effect and the related Drupal 7 core issue https://www.drupal.org/node/2914964