Thumbnails created the same size of the original image

Posted in: Newspaper
Post count: 11

Hi,

I have just noticed one thing. I active the thumbnail 1068×0 as I need for the post type i´m using.

However, when I create the title for the post I´m already using that size and uploading with it. For instance 1068×558.

But another “exact” image is created and I end up with 2 identical photos.

Image.jpg
Image-1068×558.jpg

I remember seting this option as a picture was shown asking me to activate the thumbnails.

How can I solve this duplication then?

Post count: 82

That’s a good one. The theme should not create another thumbnail if the original image is already of sufficient size. I’ve ran into the same problem with Slider – even though I upload the image as 1068xSomething, the theme still creates another one.

Any solution, tagDiv? Perhaps we could bypass the thumbnail for that one module somehow?

Post count: 20688

The theme will always create the thumbnails that are enabled in the theme panel. The size you mention is used in these cases
https://www.screencast.com/t/bj8gAKvo
You can disable that size if you are not using it, it will not be created anymore. Then for example on a post that uses it, the full original image size will be loaded, not a thumbnail. This would be useful by case for most users, for example if you were to use a bigger image size this will always be served instead of the thumbnail, leading to increased loading time.

Post count: 82

Wait a minute. So if we turn the thumbnail off in Theme Panel and also turn off the option to display “placeholder” images, the blocks will load full-size images as thumbnails?

Post count: 20688

I was referring to the post templates that use that thumbnail size. If you do not set a featured image a placeholder will be displayed in block modules. If you disable the placeholders, nothing will be displayed in the modules. In the post pages the full image will be shown.

Post count: 82

I understand.

While we’re at it, is there a way to force a single module/block to use a different thumbnail? I mean, there is a size that I only need in a single block on a single page. It seems vastly unnecessary to have all images practically duplicated just because of that single block. I would rather overwrite it, even if I had to mess with the theme’s source code.

Post count: 20688

Each module will use one of the predefined thumbnail sizes, like this
https://www.screencast.com/t/Z8Sn2XztAoKf
You could change the thumbnail size that a module uses, with a different one if this is required for you. All the thumbnail sizes are defined here
https://www.screencast.com/t/MfYAuU7tw
If you change a module thumbnail it will affect all the elements that use it.

Post count: 82

Sorry for bringing the topic back from the dead, but I just ran into this problem again.

Very specifically: How can I tell the Slide module (not Revslider) to use the original size image and not the predefined 1068×580 thumbnail?

Can this be done with API or should I edit line 39 of td_module_slide.php?

What to put there instead of

$this->get_image('td_1068x580', true);

?

Post count: 20688

Hi,

Currently the slide will use one of these thumb sizes
https://www.screencast.com/t/ZEfnPhdKc5bc

You would have to modify the slide module code to change this
https://www.screencast.com/t/THN1OccBb

Post count: 82

Thank you. Could you please tell me how to modify that part of the code to tell the slider to use the original, not-resized image? (Which is at 1068px width upon upload). I only need the 3-column version.

The point is that while some other thumbnails are useful, this large one is needed only for the slider and there is really no point in having all the other images resized to this big thumbnail that only like 1% of images will ever really use.

Post count: 20688

Tried a few things to get the original image, didn’t work, sorry. Seems it is harder than I initially thought. If I would have found a solution I would share it gladly. Sorry for the inconvenience.

Post count: 82

Thanks for trying. If you do come up with something, please let me know 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.