ok solved,
in rss.php replace this lin
'image' => get_thumbnail_rss_code($row['image_media_file'], $row['image_thumb_file'], $row['image_id'], $row['cat_id'], format_rss_text($row['image_name']), ((isset($mode) && !empty($mode)) ? $mode : ""), 1),
with
'image' => get_thumbnail_rss_code($row['image_media_file'], $row['image_media_file'], $row['image_id'], $row['cat_id'], format_rss_text($row['image_name']), ((isset($mode) && !empty($mode)) ? $mode : ""), 1,0),
and in includes/functions.php insert before ?>
//--External thumbnails(modified for rss feed)--------------------------------
function get_thumbnail_rss_code($media_file_name, $thumb_file_name = "", $image_id, $cat_id, $image_name = "", $mode = "", $show_link = 1, $open_window = 1) {
global $site_sess, $config;
$mysite = 'http://www.YOURDOMAIN.com/';// change this to the path to your 4images gallery
if (!check_media_type($media_file_name)) {
$thumb = "<img src=\"".$mysite.ltrim(ICON_PATH,"./")."/404.gif\" border=\"0\" alt=\"\" />";
}
else {
if (!get_file_path($thumb_file_name, "thumb", $cat_id, 0, 0)) {
$file_src = $mysite.ltrim(ICON_PATH,"./")."/".get_file_extension($media_file_name).".gif";
$image_info = @getimagesize($file_src);
$width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
$thumb = "<img src=\"".$file_src."\" border=\"0\"".$width_height." alt=\"".$image_name."\" />";
}
else {
$file_src = $mysite.ltrim(get_file_path($media_file_name, "media", $cat_id, 0, 1),"./");
$image_info = @getimagesize($file_src);
$width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
$width = $image_info[0];
$height = $image_info[1];
$dimension = 650;
$ratio = $width / $height;
if ($ratio > 1) {
$new_width = $dimension;
$new_height = floor(($dimension/$width) * $height);
}else {
$new_width = floor(($dimension/$height) * $width);
$new_height = $dimension;
}
$thumb = "<img src=\"".$file_src."\" border=\"".$config['image_border']."\" width=\"".$new_width."\" height=\"".$new_height."\" alt=\"".$image_name."\" />";
}
}
if ($show_link) {
if ($open_window) {
$thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
}
else {
$thumb = "<a href=\"".$file_src."\" rel=\"lightbox\">".$thumb."</a>";
}
}
return $thumb;
}
//--End external thumbnails(modified for rss feed)----------------------------
Please pay attention to adapt this line with your URL to your 4images installation
$mysite = 'http://www.YOURDOMAIN.com/';// change this to the path to your 4images gallery
in this line $dimension = 650;
you can adapt the preferred width of your images in your rss-feed