-
AuthorPosts
-
romocop2 Friend
romocop2
- Join date:
- April 2009
- Posts:
- 6
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
May 24, 2009 at 10:16 am #141420Hi,
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 Friendromocop2
- Join date:
- April 2009
- Posts:
- 6
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
May 25, 2009 at 3:47 am #305802Anyone!!!???
alqemist Friendalqemist
- Join date:
- May 2009
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 5 times in 1 posts
May 25, 2009 at 1:23 pm #305832This 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 Friendromocop2
- Join date:
- April 2009
- Posts:
- 6
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
May 25, 2009 at 5:33 pm #305841That didn’t work for me. This is my site. It’s still the same…
alqemist Friendalqemist
- Join date:
- May 2009
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 5 times in 1 posts
May 25, 2009 at 6:14 pm #305847If that solution did not work I would try defining the img dimensions in the using the img button in the editor
romocop2 Friendromocop2
- Join date:
- April 2009
- Posts:
- 6
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
May 25, 2009 at 6:21 pm #305848Where can I find this “editor”? Thanks for the replies BTW. I really appreciate it.
alqemist Friendalqemist
- Join date:
- May 2009
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 5 times in 1 posts
May 25, 2009 at 7:59 pm #305858The 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 Friendromocop2
- Join date:
- April 2009
- Posts:
- 6
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
May 25, 2009 at 11:28 pm #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! 🙂
1 user says Thank You to romocop2 for this useful post
gnubler Friendgnubler
- Join date:
- March 2009
- Posts:
- 25
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
June 9, 2009 at 5:22 pm #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.
1 user says Thank You to gnubler for this useful post
-
AuthorPosts
This topic contains 10 replies, has 4 voices, and was last updated by sweet160 14 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum