Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • timpennington Friend
    #167911

    I’ve looked at several questions to this problem and can’t find a suitable answer just yet …

    Many of my photos in articles have people in them; some are verticle; when they are resized automatically to show out front on the news sections, they always “center” the photos vertically and this cut off the top portion of the photos which usually has the person’s head in them:

    See the third article on this layout:

    http://ihbraves.org/index.php?option=com_content&view=category&layout=blog&id=59&Itemid=102&limitstart=4

    Is there a way to set it up to that when the photo is resized, it crops from the bottom? Or maybe even aligns to the “top”

    Thanks

    tp

    khoand Friend
    #409192

    Is there a way to set it up to that when the photo is resized, it crops from the bottom?

    I think it should crop from top. It mean images will contain head of person. It’s right. You replace this code from

    $src->x = floor(($width-$src->w)/2);
    $src->y = floor(($height-$src->h)/2);

    with


    $src->x = floor(($width-$src->w)/2);
    $src->y = 0;

    You delete all of files of /cache, /t3-assets, /images/resized/ folder

    cwilborngv Friend
    #439118

    I’m having the same issue with JA Teline III v2.0. Where do I go to replace this code?

    Thanks!

    khoand Friend
    #439238

    It’s here: /plugins/content/plg_jathumbnail.php

    cwilborngv Friend
    #439270

    Is there anything I can do about the thumbnails being generated in the JA News Pro module to solve this issue there?

    Thanks!

    khoand Friend
    #439459

    Could you give me a link to your website has your issue?

    cwilborngv Friend
    #439659

    beta.gazettevirginian.com

    Thanks!

    khoand Friend
    #439969

    You replace the code from /modules/mod_janews2/jaimage.php

    $src->y = floor ( ($size[1] - $src->h) / 2 );
    with

    $src->y = 0;
    You delete all of files of /cache, /t3-assets, /images/resized/ folder

    cwilborngv Friend
    #440302

    I don’t have mod_janews2 module. I have mod_janews_featured and mod_janewspro.

    I opened those .php files but don’t see any code $src->y = floor ( ($size[1] – $src->h) / 2 );

    Any thoughts?

    khoand Friend
    #440327

    It’s here: /modules/mod_janewspro/helpers/jaimage.php

    khoand Friend
    #442317

    Do you solve it?

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 3 voices, and was last updated by  khoand 12 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum