Featured image crop left crop or top left crop

Posted in: Newspaper
Post count: 49

Hello, I would like to post some comic strips, they are rectangular images, the original files are 2.900 x 1.000 px so a ratio of 2,9 and it can be scaled down. As with comic strip the comic twist is at the end and a top center crop spoils the surprise effect. Is there a way to have a left crop?
Here you say it should be possible, but the example you give is too technical for me.
Thank you in advance.

Post count: 20688

Hi,

That would be the method that should be used to modify the cropping used by the theme. Or make the modification directly in the theme files, for the thumbnail you wish
https://www.screencast.com/t/xtHU4Pkf7N
The thumbnails will have to be regenerated after making any modification
https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/

Thanks

Post count: 49

So I changed this bit:

‘crop’ => array(‘center’, ‘top’),

into:

‘crop’ => array(‘left’, ‘top’),

for all the api_thumb, regenerated the thumbnails, but the appearance doesn’t change.

Maybe this can help: I have inspected the theme and the thumbs that should be cropped from the left are the “td-module-thumb” or “td-big-thumb and td-medium-thumb

Post count: 20688

Hi,

Please make sure you are modifying the thumbnail for the module you are testing. Check which module uses what thumbnail, then make the modification
https://www.screencast.com/t/8EPvBszn
Modify the thumbnail cropping and test on the same module. Regenerate thumbnails after make in any changes for the thumbnails. Also clear installed caches. The images should be cropped according to the values you enter. The first value being horizontally and the second vertically.

Thanks

Post count: 49

Thanks! It was the Google Chrome cache that caused the problem!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.