add_image_size / strange 0px sizes / how to ammend

Posted in: Newspaper
Post count: 37

I find strange 0px image sizes in the media settings. Am I right that these 0px sizes are not intended by you? And, where can I amend the PHP code, I could not find that setting in functions.php nor in “includes/td_config.php”.

add_image_size( 'rss-image', '200', '200', false );
add_image_size( 'td_80x60', '80', '60', false );
add_image_size( 'td_100x70', '100', '70', false );
add_image_size( 'td_218x150', '218', '150', false );
add_image_size( 'td_265x198', '265', '198', false );
add_image_size( 'td_324x160', '324', '160', false );
add_image_size( 'td_324x235', '324', '235', false );
add_image_size( 'td_324x400', '324', '400', false );
add_image_size( 'td_356x220', '356', '220', false );
add_image_size( 'td_356x364', '356', '364', false );
add_image_size( 'td_533x261', '533', '261', false );
add_image_size( 'td_534x462', '534', '462', false );
add_image_size( 'td_696x0', '696', '0', array( "center", "top") );
add_image_size( 'td_696x385', '696', '385', false );
add_image_size( 'td_741x486', '741', '486', false );
add_image_size( 'td_1068x580', '1068', '580', false );
add_image_size( 'td_1068x0', '1068', '0', array( "center", "top") );
add_image_size( 'td_0x420', '0', '420', array( "center", "top") );
add_image_size( 'wptouch-new-thumbnail', '144', '144', false );
add_image_size( 'motive-alt-slider', '740', '357', false );
add_image_size( 'foundation-featured-image', '900', '9999', false );

Post count: 7909

Hi,

You can find thumbnail size in td_config.php file if you want to change this – http://screencast.com/t/3gdOivk1 and if you change/add a size please regenerate your thumbnails – https://forum.tagdiv.com/using-the-theme-with-existing-content/ Also there is an option to enable/disable thumbnail image on modules/blocks in Theme Panel – http://screencast.com/t/oWYPjpspz
You can find out more here about width/height = 0 on crop – https://codex.wordpress.org/Function_Reference/add_image_size#Parameters

Thanks!

Post count: 37

Thank you for those explanations

I have now very carefully Force Regenerated all images and I still have quite a lot of images that do not resize correctly. Even if I manually correct those crops with Post Thumbnail Editor they still do not show-up correctly.

Is there a way to send you my URL privately for you to have a look?

2nd Question
This may not be a question for you!? In Post Thumbnail Editor, for many themes there are the identical aspect ratios of images clustered. This makes it much, much faster to edit the crop in one go. Is this a feature of the 3red party plugin or does that depend on some media setting in your theme?

3rd Question
If some of the images cannot be cropped, may that have something to do with the 0ps image size? What can I do if an image size that has a 0ps setting does not crop to the correct size?

Kind regards
zumaxb

  • This reply was modified 11 years by zumaxb.
Post count: 7909

Hi,

1. Please send an email at contact@tagdiv.com and provide your site url if you don’t want to paste it here, also paste a link to this topic so we can know who you are and what your issue is.
2. We did not tested this plugin with the theme so I cannot make any suggestions regarding this, like I said above in td_config.php you can find all thumbnail size, also please note that there’s no ideal image size, the modules have thumbs with different aspect ratios and a part of the image may get lost on the cropping process. You could read more about the featured image size here (it’s from Newsmag documentation but the principles are the same) – https://forum.tagdiv.com/image-size/
3. What do you mean cannot be cropped? If you use smaller featured images than the size of the thumb on a module it cannot be cropped, also WordPress doesn’t enlarge images and you will need to use plugin like Thumbnail Upscale to enlarge thumbnails: https://wordpress.org/plugins/thumbnail-upscale/ For upscale use a combination of plugins Thumbnail Upscale + Force Regenerate.

Thanks!

Post count: 37

I do realise that your theme is complex and very well executed, that you concentrate on only two themes and on only one niche, and that you give great an speedy support. I very much respect that approach, so please don’t get me wrong if I say this:

I have extensive experience on a “power user” level with dozens of commercial themes and a number of hand made themes. I am the admin of at least 5 WP-based websites actually online in parallel.

And I have never come across a theme that handles images the way that yours does. Again, I don’t mean to complain, I merely need to understand what’s happening so that I can act accordingly.

First question
I have now installed the Upscale Thumbnails plugin and (force) regenerated thumbnails. The result is, that all images included in one of your modules/blocks, i.e. in some kind of post list or slider, are displayed correctly > great! Thank you!

But one problem remains, the images on post single have not changed.

Why?

Second question
How can I manually adjust the position of where a crop is set? This is usually done with the plugin Post Thumbnail Editor. With “crop” I mean this: Assume that the image is large enough for the largest possible media size – no Upscale Thumb is needed > i.e. ideal circumstances.

The important content in this large image is only very small and in bottom right hand corner. For the very small square thumbnails td_80x60 size I want to focus on only this small area. How can I achieve that?

Post count: 7909

Hi,

1. Do you refer to the featured image? That depends which post template you use, also in Theme Panel > Block Settings you can see thumbnail size that is used also on post styles/modules/blocks – http://screencast.com/t/K383RqyNa2

2. This can be done only if you modify it in the code, please check crop mode – https://codex.wordpress.org/Function_Reference/add_image_size#Crop_Mode and change it in this array – http://screencast.com/t/i15eTrB6f

Thanks!

Post count: 37

1)
I refer to this
https://www.dropbox.com/s/e44t4o4ve8tazyy/image_size.png?dl=0

2)
Astonishing. Even disappointing.

Post count: 7909

Hi,

Is that a featured video or a content video? Did you set video format?
Please provide a link or send an email at contact@tagdiv.com provide a link to that article so we can take a look and also paste a link to this conversation so we can know who you are.

Thanks!

Post count: 37

Ok, great with your last email and your custom CSS

.single .td-post-featured-image img { width: 100%; }

I was able to achieve what I needed.

CASE CLOSED

Thank you very much and keep up the impressive work!
zumaxb

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