Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
// for relative paths assume that they are relative to images directory,
// otherwise just use the given pat
if (file_exists($path)) {
$source_file_name = $path;
} else {
$source_file_name = $config['basedir'] . 'images/' . SmartStripSlashes($path);
}
// for relative paths assume that they are relative to images directory,
// otherwise just use the given pat
$file_header = @get_headers($config['gallery_url'].'images/'.$path);
if ($file_header[0] == 'HTTP/1.1 200 OK') {
$base_filename = sanitize_filename(basename($path));
$prefix = $thumb_config['filename_prefix'] . $prefix . "-";
$thumburl = $config['gallery_url'].'thumbs/'.$prefix.$base_filename;
return $thumburl;
} else if (file_exists($path)) {
$source_file_name = $path;
} else {
$source_file_name = $config['basedir'] . 'images/' . SmartStripSlashes($path);
}
Posted By: marvine28As you have said there is a problem for the intermediate images, there must be a way to set the width of images directly into the PHP file plog-functions.php ex: 450 for 450 pixels ???
$thumbpath = generate_thumb($picture_path, $result['picture_id'],THUMB_SMALL);
#$thumbpath = generate_thumb($picture_path, $result['picture_id'],THUMB_LARGE);
$thumbpath = generate_thumb($picture_path, $result['picture_id'],THUMB_SMALL);
$thumbpath = generate_thumb($picture_path, $result['picture_id'],THUMB_LARGE);
Posted By: marvine28You can see 2 warnings at the bottom of this page:http://www.150news.com/celebrity-pictures/index.php?level=picture&id=1215Do you need the EXIF information? If not, just remove it from the theme because it's trying to find the image information using a local path (instead of the remote path and the remote path would possibly throw an error as well).
Posted By: marvine28And i have another problem: I do not know why but there are a few images that does not appear and they appear on my first script like on this page:http://www.150news.com/celebrity-pictures/index.php?level=album&id=18I don't know why the images aren't returning correctly, but for some reason they are not generating a 200 header. You can try altering the code I gave you above to:
if ($file_header[0] != 'HTTP/1.1 404 Not Found') {
1 to 7 of 7