test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • romocop2 Friend
    #141420

    Hi,

    Everytime I post a new article I have an image that goes a long with it. Well when I make it live, the image is resized. How do I go about changing this to where the image displays it’s original size?

    Thanks!

    romocop2 Friend
    #305802

    Anyone!!!???

    alqemist Friend
    #305832

    This should fix it

    <em>@alqemist 129222 wrote:</em><blockquote>I have looked through ja_templateTools_15.php and found the problem – a previous post on this issue suggested changing $crop=1 to $crop = 0 – I thought I had made that change but after rechecking I had not.

    starting @ line # 448 make the change to “$crop = 0″

    function processImage ( &$img, $width, $height, $crop=0) {
    if(!$img) return;

    $img = str_replace(JURI::base(),”,$img);
    $img = str_replace(“‘”,”,$img);
    $img = rawurldecode($img);
    $imagesurl = (file_exists(JPATH_SITE .’/’.$img)) ? JA_Tools::jaResize($img,$width,$height, $crop) : ” ;
    return $imagesurl;
    }

    function jaResize($image,$max_width,$max_height, $crop=0){
    $path =JPATH_SITE;
    $imgInfo = getimagesize($path.’/’.$image);
    $width = $imgInfo[0];
    $height = $imgInfo[1];
    if(!$max_width && !$max_height) {
    $max_width = $width;
    $max_height = $height;
    }else{
    ……………….

    This solves the resizing problem woo hoo !</blockquote>

    romocop2 Friend
    #305841

    That didn’t work for me. This is my site. It’s still the same…

    http://www.maddenlounge.com

    alqemist Friend
    #305847

    If that solution did not work I would try defining the img dimensions in the using the img button in the editor

    romocop2 Friend
    #305848

    Where can I find this “editor”? Thanks for the replies BTW. I really appreciate it.

    alqemist Friend
    #305858

    The way I turned off resizing is to edit the php script ja_templatetools.php line #415.

    Insert “return;” as the first line of this function…..like so…

    function extractImage( &$row, $autoresize, $width = 0, $height = 0) {
    return;
    ………..

    Maybe a better way but I wanted to stop any resizing or downsampling of the images.

    romocop2 Friend
    #305865

    <em>@alqemist 130148 wrote:</em><blockquote>The way I turned off resizing is to edit the php script ja_templatetools.php line #415.

    Insert “return;” as the first line of this function…..like so…

    function extractImage( &$row, $autoresize, $width = 0, $height = 0) {
    return;
    ………..

    Maybe a better way but I wanted to stop any resizing or downsampling of the images.</blockquote>Thank you so much. This was my problem! Now problem fixed! 🙂

    gnubler Friend
    #307394

    <em>@alqemist 130148 wrote:</em><blockquote>The way I turned off resizing is to edit the php script ja_templatetools.php line #415.

    Insert “return;” as the first line of this function…..like so…

    function extractImage( &$row, $autoresize, $width = 0, $height = 0) {
    return;
    ………..

    Maybe a better way but I wanted to stop any resizing or downsampling of the images.</blockquote>

    Thanks! Worked for me, too. Easy.

    sweet160 Friend
    #355048

    This solved a nasty problem i had with my cck thingy! Thanks

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

This topic contains 10 replies, has 4 voices, and was last updated by  sweet160 14 years, 3 months ago.

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