Feature Images higher in v6?

Posted in: Newspaper
Post count: 62

It seems that the features images are much higer in v6 than v4. (for example first the image was 508, now he is 738px). It takes the whole screen now..

I’m trying to get for example in template 3 a less higher image by changes 1068×0 into 1068×300:
<?php echo $td_mod_single->get_image(‘td_1068x300’); ?>

But he doesn’t:
– show the correct height
– doesn’t generate the correct image size

What can I do to decrease the image size?

Post count: 100

There are many different post template options. You can always select one utilizing less real estate for your featured image.

Post count: 62

Yes there are different templates to choose from. But I choose the same template (style 3) like in de demo:
http://demo.tagdiv.com/newspaper/td-post-if-you-only-knew-how-much-your-relative-churn-rate-matters/

my image is much higher then in the demo. I have tried to regenerate the images, start all over with new images. But still all the images are higher then in the demo. So something goes wrong, or I am doing something wrong

Post count: 100

The problem is with your aspect ratio then.
The image will stretch horizontally, keeping the height in a relative size.

Therefore if that looks bad to you, try using more “wide” images.

Post count: 62

But I take the same image dimensions (1688 x 1125) as the demo image:
http://demo.tagdiv.com/newspaper/wp-content/uploads/2015/04/8.jpg

The thing what I found strange is that the image on the demo has width 1068 and height 712

But If you measure it, it really shows 552px

My image doesn’t take the image with -1068×712 behind the image name (it only takes the normal image name) and the size is 712. I want it also like in the demo to have it 552px

Post count: 100

On a setup I have on a very very slow old pc testing the new version of newspaper,

I show you with your pick of post template two articles.
One with a portrait and one with a landscape picture.

You will see for yourself that the specific post template, keeps the aspect ratio, while stretching on the width…

POST with portrait featured image
http://mobile.neakriti.gr/neakriti2/index.php/i-omorfia-tou-sympantos/

Post with landscape featured image
http://mobile.neakriti.gr/neakriti2/index.php/to-sympan-apo-to-mikrotero-sto-megalytero/

I understand what you describe, but to my knowledge so far, its just outputing what you give it

Post count: 10

I haven’t looked at the demo, but just based on the numbers, this image is a 4:2 ratio size, and you’ll need a 4:3 to generate the proper thumbnail.

Post count: 62

Ok, I see what you mean. But still curious why in the demo the size is somehow ‘cropped’ or showing maximum of 512px, while the image is larger.

Post count: 100

The thumbnails are handled very nice no matter what the aspect ratio as long as your subject is not at one of the edges of the screen, but as centered as possible.

This is a search result in this test site that shows both images of the example links I gave you
http://mobile.neakriti.gr/neakriti2/?s=%CF%83%CF%85%CE%BC%CF%80%CE%B1%CE%BD

You see that even one is VERY portrait, and the other landscape they appear very nice as thumbs

Post count: 62

@surfpark It’s not the thumbnail, they are shown correctly. It’s is the main image

Post count: 100

Have you accidentally passed as featured image one of the pictures produced by the generated thumbnails? When you upload an image it generates 15 variations of that image so it can be used for small, medium, large thumbs.

Post count: 100

Each image as I said is chopped in 15 variations.

For example the
http://demo.tagdiv.com/newspaper/wp-content/uploads/2015/04/8-1068×712.jpg

you pasted is a variation of the
http://demo.tagdiv.com/newspaper/wp-content/uploads/2015/04/8.jpg

  • This reply was modified 11 years by neakriti.
Post count: 62
Post count: 62

The one in the example you gave:
http://demo.tagdiv.com/newspaper/wp-content/uploads/2015/04/8-1068×712.jpg

it says 1068×712,

But if you open the image in photoshop or look at the dimensions the size is: 1068x552px

So the image is cropped in a different size then the image was

Post count: 100

You are very right….
I now understood your problem….

So infact it shouldn’t keep the aspect ratio, but instead it should crop like in the rest of the post styles….

Hmmm…. I thought it was a feature, but it looks like its a bug instead…… I will try to see if there is some option we haven’t seen so far, otherwise it should be answered by tagdiv….

Post count: 62

Nope, it shouldn’t keep the aspect ratio, but like you said I want to have it cropped like the rest of the post styles.

I’m trying to make a new crop setting in the td_config but he just wouldn’t not make my new size.

I think it is a bug, or I am still doing something wrong.
Thanks for thinking!

Post count: 62

I can change the size in the single_template_3.php
http://screencast.com/t/SYSHJWDwX

But for that I need to change an existing or create a new thumb size over here:
http://screencast.com/t/ybhYquhg

I still have the problem that he won’t make the new thumb size. Or I have to do something else, or the td_config is caching stuff, which I don’t think so, because if I change an existing thumb, then the old format won’t be created anymore, but also it doesn’t give me the new format.

I’m a little stuck…

Post count: 100

.td-post-template-3 .td-post-featured-image img {
max-height: 700px;
width: 100%;
object-fit: none;
object-position: center;
}

try the above CSS. I know its not the real deal, but it does what you want, until tagdiv reply to your problem.
However this is not the optimal solution, nor it handles all situations like smaller images.

I believe tagdiv can only help us on that

  • This reply was modified 11 years by neakriti.
  • This reply was modified 11 years by neakriti.
Post count: 62

Maybe I can try it for now (only object-fit is not supported by most browsers) and wait for tagDiv to give me a better solution.

It doesn’t make sense why he won’t create my new thumbnail format in the td_config.. but hopely can tagDiv help me with that also

Thanks for helping…

Post count: 62

Okay… now I have fixed it. I had to enable the in the theme panel in block settings > thumbs on modules & blocks the new defined format.

Also I had to delete the cache file in wp-content. Because after done all these 3 steps I still had the old version. But not it seems I have fixed it (locally)

Post count: 100

Very nice! You defined your new dimension, applied it to your Template3.

So by defining a new dimension, it appeared automatically in the block settings?
So only you had to enable it and regen thumbs?

  • This reply was modified 11 years by neakriti.
  • This reply was modified 11 years by neakriti.
Post count: 62

Yes after defining it, it fame automatically in the settings. Afterwards I had to regenerate the thumbs again. And I had to clear the cache folder (because it kept my old dimensions)

Post count: 100

Amazing jansena, clear and pro!

Post count: 780

Hi all,

we’re working hard to finish the api documentation: https://forum.tagdiv.com/the-theme-api/

about thumbs: https://forum.tagdiv.com/api-thumbnail-introduction/

Thanks neakriti for all the help and suggestions. We are preparing a list where we will add all the good DIY stuff from this forum :).

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