rvola / timthumb Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/timthumb
Automatically exported from code.google.com/p/timthumb
What steps will reproduce the problem?
1. Have a server used for media (http://mymedia.com or
http://media.example.com on a different server, of course)
2. Call the url to the file on that server
3. Try and view the thumbnail and it won't work.
What is the expected output? What do you see instead?
To see the thumbnail. I see the alt because it will only view files on your
server.
What version of the product are you using? On what operating system?
The most recent. Red Hat is on the server, Windows 7 on my computer.
Please provide any additional information below.
The feature for clean paths is nice, but if you have your files on a
different server, is is troublesome.
Original issue reported on code.google.com by [email protected]
on 3 Feb 2009 at 4:03
I got this error when using timthumb
php_uname() has been disabled for security reasons in
/home1/suyaxcom/public_html/wp-content/themes/theme1/timthumb.php on line 212
how can i fix it?
i've also contacted my webhosting admin about his error
and he told me that php_uname() was disabled due security reason because of
that php shell r57 and c99 use the same method.
is there any solution for timthumb without php_uname() ?
Original issue reported on code.google.com by [email protected]
on 7 Apr 2009 at 4:23
What steps will reproduce the problem?
1. if php.ini contains the following line: error_reporting = E_ALL
2. And code in timtumb contains:
$imageFilters = array(
"1" => array(IMG_FILTER_NEGATE, 0),
"2" => array(IMG_FILTER_GRAYSCALE, 0),
"3" => array(IMG_FILTER_BRIGHTNESS, 1),
"4" => array(IMG_FILTER_CONTRAST, 1),
"5" => array(IMG_FILTER_COLORIZE, 4),
"6" => array(IMG_FILTER_EDGEDETECT, 0),
"7" => array(IMG_FILTER_EMBOSS, 0),
"8" => array(IMG_FILTER_GAUSSIAN_BLUR, 0),
"9" => array(IMG_FILTER_SELECTIVE_BLUR, 0),
"10" => array(IMG_FILTER_MEAN_REMOVAL, 0),
"11" => array(IMG_FILTER_SMOOTH, 0),
);
3.
What is the expected output? What do you see instead?
Error message: otice: Use of undefined constant IMG_FILTER_NEGATE -
assumed 'IMG_FILTER_NEGATE' in
/home/domains/www.imm-award.de/htdocs/wp-content/themes/constructor/timthumb.php
on line 30
Notice: Use of undefined constant IMG_FILTER_GRAYSCALE - assumed
'IMG_FILTER_GRAYSCALE' in
/home/domains/www.imm-award.de/htdocs/wp-content/themes/constructor/timthumb.php
on line 31
Notice: Use of undefined constant IMG_FILTER_BRIGHTNESS - assumed
'IMG_FILTER_BRIGHTNESS' in
/home/domains/www.imm-award.de/htdocs/wp-content/themes/constructor/timthumb.php
on line 32
Notice: Use of undefined constant IMG_FILTER_CONTRAST - assumed
'IMG_FILTER_CONTRAST' in
/home/domains/www.imm-award.de/htdocs/wp-content/themes/constructor/timthumb.php
on line 33
Notice: Use of undefined constant IMG_FILTER_COLORIZE - assumed
'IMG_FILTER_COLORIZE' in
/home/domains/www.imm-award.de/htdocs/wp-content/themes/constructor/timthumb.php
on line 34
And so on...
What version of the product are you using? On what operating system?
Timthumb version 1.09
Please provide any additional information below.
Please note that constant name must always be quoted when defined.
e.g.
define('MY_CONST','blah') - correct
define(MY_CONST,'blah') - incorrect
The error message above also indicates this fact.
If this code is used instead in the script:
$imageFilters = array(
"1" => array('IMG_FILTER_NEGATE', 0),
"2" => array('IMG_FILTER_GRAYSCALE', 0),
"3" => array('IMG_FILTER_BRIGHTNESS', 1),
"4" => array('IMG_FILTER_CONTRAST', 1),
"5" => array('IMG_FILTER_COLORIZE', 4),
"6" => array('IMG_FILTER_EDGEDETECT', 0),
"7" => array('IMG_FILTER_EMBOSS', 0),
"8" => array('IMG_FILTER_GAUSSIAN_BLUR', 0),
"9" => array('IMG_FILTER_SELECTIVE_BLUR', 0),
"10" => array('IMG_FILTER_MEAN_REMOVAL', 0),
"11" => array('IMG_FILTER_SMOOTH', 0),
);
everything works fine. Please update your script.
Original issue reported on code.google.com by [email protected]
on 4 Nov 2009 at 1:08
What steps will reproduce the problem?
1. Upload an image that is accessed using timthumb.php
2. View the image on the web, so a resized image is cached on the web server
3. Replace the original image with a different one, but with the same filename
4. View the image again on the web
What is the expected output? What do you see instead?
I'd expect to have timthumb.php detect a new version of the original image
and therefore recreate the cached image. Instead, I see the old cached
image as if timthumb.php is unaware the original has changed.
I have added the advanced caching check rules to my .htaccess file.
Original issue reported on code.google.com by [email protected]
on 4 Mar 2009 at 5:44
hi,
i'm adding some additional function to have the possibility to shift the
zoom croped result image vertical a later maybe horizontal too.
added line 34:
$zoom_crop_offset_y = preg_replace( "/^[1-9][0-9]*$/", "", get_request(
'zcoy', 0 ) );
modification an line 365:
$cachename = get_request( 'src', 'timthumb' ) . get_request( 'w', 100 ) .
get_request( 'h', 100 ) . get_request( 'zc', 1 ) . get_request( 'q', 80 ) .
get_request( 'zcoy', 0 );
add line 92:
$offset_y = $zoom_crop_offset_y;
and mod line 108:
$src_y = round( ( $height - ( $height / $cmp_y * $cmp_x ) ) / 2 ) + $offset_y;
all done with less knowhow, and a much try and error and very much google :-)
enagble to set a &zcoy=value (pixels) can my positiv or negative value to
shift the croped result verticaly
Original issue reported on code.google.com by [email protected]
on 23 Nov 2008 at 11:55
[deleted issue]
anyone know how to get it work if i am not with hostgator? but i am
running centOS with cpanel/whm and apache here.
what must i put into the mod_security configuration?
thanks in advance!
Original issue reported on code.google.com by [email protected]
on 10 Sep 2009 at 7:32
What steps will reproduce the problem?
1. Wrote a post, assigned to "Headline" category
2. Upload an image to my media library
3. Added a custom field (name=Image) and input the corresponding value for the
uploaded
image
4. Published post
What is the expected output? What do you see instead?
Any post assigned to the "Headline" category should display the uploaded image
that is
referenced in the custom field.
Instead I am seeing an empty space as if the image is missing. This occurs
within the "Featured"
post category, as well as any other location where custom field images are
supposed to display.
What version of the product are you using? On what operating system?
The version that comes with the Arthemia Free Wordpress Magazine theme. (link:
http://michaelhutagalung.com/2008/05/arthemia-magazine-blog-wordpress-theme-
released/)
Running Mac OSX 10.5.6; Safari 3.2.1 and Firefox 3.0.5
Please provide any additional information below.
The attached screen shots are:
1) My homepage with the "empty" image
2) The HTML displayed when I right-click and open the image in a new tab.
Original issue reported on code.google.com by [email protected]
on 7 Jan 2009 at 10:41
Attachments:
Hi,
I have a problem with image not showing in Google Chrome.
See:
http://www.usp.br/agen/
I use script timthumb.php, and the images show correctly in IE 6,7,8,
Firefox, Safari and Opera, but not show in Google Chrome.
Its a problem only with me or its a bug of timthumb?!
I use Timthumb r63, Google Chrome 2.0.172.139, Windows XP and Windows Vista.
Thanks
Original issue reported on code.google.com by [email protected]
on 20 Aug 2009 at 2:53
What steps will reproduce the problem?
1. Place timthumb.php on root
2. Upload a file to images/ folder
3. Run timthumb with src=images/myfile.jpg
What is the expected output? What do you see instead?
Expected to work.
What version of the product are you using? On what operating system?
Windows , timthumb r48
Please provide any additional information below.
This can be fixed by adding '.' to the get_document_root $path array, like
this:
$paths = array( '.', '..', '../..', '../../..', '../../../..' );
Original issue reported on code.google.com by spamprotection
on 5 Mar 2009 at 8:31
Attachments:
What steps will reproduce the problem?
If you leave out "www." in the source url it will not find the image
To fix the problem, you can modify clean_source function to the following:
function clean_source ( $src ) {
// remove http/ https/ ftp
$src = preg_replace("/^((ht|f)tp(s|):\/\/)/i", "", $src);
// remove domain name from the source url
$src = str_replace($_SERVER["HTTP_HOST"], "", $src);
// remove domain (without "www.") from the source url
$short_host = $_SERVER["HTTP_HOST"];
$short_host = str_replace("www.", "", $short_host);
$src = str_replace($short_host, "", $src);
//$src = preg_replace( "/(?:^\/+|\.{2,}\/+?)/", "", $src );
//$src = preg_replace( '/^\w+:\/\/[^\/]+/', '', $src );
// don't allow users the ability to use '../'
// in order to gain access to files below document root
// src should be specified relative to document root like:
// src=images/img.jpg or src=/images/img.jpg
// not like:
// src=../images/img.jpg
$src = preg_replace( "/\.\.+\//", "", $src );
return $src;
}
Original issue reported on code.google.com by [email protected]
on 22 Oct 2008 at 7:31
Attachments:
I use timthumb just like it is, insert an image tag into my wordpress theme
like this:
<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb_109.php?
zc=1&w=610&h=280&src=<?php postimage_special(610,280); ?>">
The problem is: it only works the second time. Obviously, the first call to the
page will generate the
thumbnail, but not actually display it. The subsequent calls (or a refresh)
show the file just fine.
So ... how do I fix this?
cache folder has 777, php file has 777, I have no idea what it could be.
pls help
Original issue reported on code.google.com by [email protected]
on 30 Jun 2009 at 7:20
Joined the code that displays the image scaled proportionally.
Original issue reported on code.google.com by [email protected]
on 12 Mar 2009 at 2:01
Attachments:
What steps will reproduce the problem?
1. using wordpress. and copy entire posts with the original images links.
2. when my theme use timthumb.php to generate resized copies.
3. it stops because we have "http" external links.
What is the expected output? What do you see instead?
i want to check $src -the link- and redirecting it to external links
resizer function else use the local.
Original issue reported on code.google.com by [email protected]
on 4 Sep 2009 at 5:50
I use syndication to fulfil my blog, and some of sources use images without
any extension. Wordpress can handle it and auto detects what kind of mime
file is it and shows pictures properly, but timthumb doesn't show
thumbnails on main page (only files with jpg, jpeg, png, gif are supoorted).
Example:
Image filename: a414f_6a00e55281006188330111684d412c970c-500wi (no extension)
so the timthumb thumb. image file name looks like that:
http://www.thegaypaper.com/wp-content/themes/arthemia-premium/scripts/timthumb.p
hp?src=http://www.thegaypaper.com/wp-content/plugins/wp-o-matic/cache/a414f_6a00
e55281006188330111684d412c970c-500wi&w=80&h=80&zc=1&q=100
Is there any way I can modify timthumb or add possibility to auto detect
mime type in timthumb if image file doesn't have any extension?
Original issue reported on code.google.com by [email protected]
on 10 Feb 2009 at 2:30
How could we get your script to work with WPMU ?
Original issue reported on code.google.com by [email protected]
on 2 Mar 2009 at 1:04
The script isn't working on HostGator without them changing a setting
server side. Here is reply from HostGator:
"It looks like this script was being blocked by a mod_security rule. I have
disabled this rule for this domain, and the site appears to be working now.
Please check around the site and let us know if you see any other problems."
We get a lot of clients on HostGator, and they get a 404 page in WP if they
try the thumb.php image url.
Could there be a possible tweak for this?
Original issue reported on code.google.com by [email protected]
on 31 Oct 2008 at 10:31
Using version 1.08 of timthumb.php in a WooThemes theme.
A user of WooThemes had problems with the image resizer on his host. This
was the error he was getting:
http://www.pict.com/view/427006/800/4062520not2520acceptable
They eventually got the host to look at it, but they feel this is a
security issue:
The error you are getting from that script now is:
Warning: usort() [function.usort]: The argument should be an array in
/home/b48149/public_html/wp-content/themes/aperture/thumb.php on line 250
The code in question here is:
function cleanCache() {
$files = glob("cache/*", GLOB_BRACE);
/*line 250*/ usort($files, "filemtime_compare");
$i = 0;
if (count($files) > CACHE_SIZE) {
foreach ($files as $file) {
$i ++;
if ($i >= CACHE_CLEAR) {
return;
}
unlink($file);
}
}
}
This wouldn't be a particular problem , but the script then tries to
send headers:
header("Content-Type: image/png");
header("Accept-Ranges: bytes");
header("Last-Modified: " . $gmdate_mod);
header("Content-Length: " . $fileSize);
header("Cache-Control: max-age=9999, must-revalidate");
header("Expires: " . $gmdate_mod);
Which are broken due to the warning output before headers are sent.
The script then outputs an image, which is equally broken due to the
headers failing, so once the original problem on the code:
usort($files, "filemtime_compare");
is fixed, then you should be OK, the recommended fix for this would be
to change line 250 to:
if(is_array($files)) usort($files, "filemtime_compare");
Original issue reported on code.google.com by [email protected]
on 6 May 2009 at 12:58
What steps will reproduce the problem?
1. Image aspect ratios not maintained, images resized to w x h, instead of
keeping the original aspect ration and making sure it fits within w x h
bounds. Images get stretched or compressed to fit.
Distorted:
http://mtb.redesigned.com/timthumb.php?src=/itemimages/CBdiaperareawash.jpg&w=14
0&h=180
Original:
http://mtb.redesigned.com/itemimages/CBdiaperareawash.jpg
Distorted:
http://mtb.redesigned.com/timthumb.php?src=/itemimages/item_20050426115915.jpg&w
=140&h=180
Original:
http://mtb.redesigned.com/itemimages/item_20050426115915.jpg
Original issue reported on code.google.com by [email protected]
on 14 Apr 2008 at 7:52
I've put the php file here.
It runs into a 500 internal server error, I don't know why. I've made the
folder 777 for permissions, so I can't guess where the problem is occuring.
http://suryas.info/gary/wp-content/themes/thestars/scripts/timthumb.php
Original issue reported on code.google.com by [email protected]
on 14 Aug 2009 at 1:12
Joined the code that displays the image scaled proportionally.
Original issue reported on code.google.com by [email protected]
on 12 Mar 2009 at 1:59
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by spamprotection
on 5 Mar 2009 at 8:38
What steps will reproduce the problem?
1. Resize a PNG with transparency and you'll get a white background.
Original issue reported on code.google.com by [email protected]
on 14 Apr 2008 at 7:53
for custom field, I entered flickr photo links.but it says, photo cannot be
found. but when i type the address on firefox, it shows...
can you please help me to solve this problem?
Original issue reported on code.google.com by [email protected]
on 5 Jan 2009 at 6:20
Lines 524-526
if(strpos($src, "/") == 0) {
$src = substr($src, -(strlen($src) - 1));
}
Given the input "image.jpg", strpos will return false, which matches the 0
you are matching for. This is because, instead of strpos saying "there is a
slash in position 0", it is saying "there is no slash". It will be
evaluated as "if false == 0", which will come back as true. The if
statement will then execute, and it will cut the first character off $src,
despite it not being a slash. $src is now set to "mages.jpg".
Possible fix: Do an type-check (===) to make sure strpos is actually
returning an integer (0) as a position, and not a binary value (false) as a
report that there are no slashes.
Original issue reported on code.google.com by [email protected]
on 10 May 2009 at 6:42
Hello.
I've been working with thumb.php for www.threesheetsnorthwest.com on WPMU
2.8.4a.
I've succeeded in getting the images to display properly on the site by
following the directions here: http://forum.woothemes.com/topic.php?id=4375
But I've noticed the following in the error logs and was wondering if there
is something to prevent this.
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/er
ror_log:
[17-Aug-2009 20:23:00] PHP Warning: Cannot modify header information -
headers already sent by (output started at
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php:312)
in
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php
on line 425
[17-Aug-2009 20:23:00] PHP Warning: Cannot modify header information -
headers already sent by (output started at
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php:312)
in
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php
on line 426
[17-Aug-2009 20:23:00] PHP Warning: Cannot modify header information -
headers already sent by (output started at
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php:312)
in
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php
on line 427
[17-Aug-2009 20:23:00] PHP Warning: Cannot modify header information -
headers already sent by (output started at
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php:312)
in
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php
on line 428
[17-Aug-2009 20:23:00] PHP Warning: Cannot modify header information -
headers already sent by (output started at
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php:312)
in
/home5/threeshe/public_html/threesheetsnorthwest/wp-content/themes/gothamnews/th
umb.php
on line 429
Any ideas what's happening?
Line 312 in thumb.php is
`
/**
* compare the file time of two files
*/
function filemtime_compare($a, $b) {
return filemtime($a) - filemtime($b);'
And line 425-426 are:
// send headers then display image
header("Content-Type: image/png");
header("Accept-Ranges: bytes");
header("Last-Modified: " . gmdate("D, d M Y H:i:s",
filemtime($cache_file)) . " GMT");
header("Content-Length: " . $fileSize);
header("Cache-Control: max-age=9999, must-revalidate");
header("Expires: " . gmdate("D, d M Y H:i:s", time() +
9999) . "GMT");
readfile($cache_file);
Original issue reported on code.google.com by [email protected]
on 18 Aug 2009 at 8:11
What steps will reproduce the problem?
- Using timthumb without specifing width or height
What is the expected output?
- The other dimension should be calculated.
What do you see instead?
- The other dimension is set to a default value of 100
There's a quick fix for the problem: set the other dimension to zero.
So for example:
timthumb.php&w=300h=0&src=image.jpg
In this case timthumb calculate the height.
Or change lines 32 and 33 from
$new_width = preg_replace( "/[^0-9]+/", "", get_request( 'w', 100 ) );
$new_height = preg_replace( "/[^0-9]+/", "", get_request( 'h', 100 ) );
to
$new_width = preg_replace( "/[^0-9]+/", "", get_request( 'w', 0 ) );
$new_height = preg_replace( "/[^0-9]+/", "", get_request( 'h', 0 ) );
Regards,
Valentino Aluigi
Original issue reported on code.google.com by [email protected]
on 20 Jan 2009 at 11:33
What steps will reproduce the problem?
1.
http://www.b2btradeshows.net/scripts/timthumb.php?src=http://www.b2btradeshows.n
et/logo/204.gif&h=75&w=113&zc=1
2. The error i get is unable to open file
3. Open the image source in the file, it open properly.
What is the expected output? What do you see instead?
The timthumb is not working on GIF files, but its working perfectly on jpg
and png.
What version of the product are you using? On what operating system?
am using the latest vest of the timthumb on fedora linux (server) and my
PC is windows vista
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 1 Apr 2009 at 11:54
currently in line 383 in svn/trunk/timthumb.php (r63):
$mime_type = trim(@shell_exec('file -bi "' . $file . '"'));
suggestion:
$mime_type = trim(@shell_exec('file -bi ' . escapeshellarg($file)));
Why?
If $file somehow contains double quotes, dollar signs or other special
characters, the current solution could fail or even be dangerous.
escapeshellarg() puts $file in single quotes and escapes single quotes
within $file correctly.
Original issue reported on code.google.com by [email protected]
on 7 Aug 2009 at 9:17
I came across an unusual error condition where the following error message
was output:
Warning: finfo_open() [function.finfo-open]: Failed to load magic database
at '/etc/magic'. in /htdocs/public/www/wp-
content/themes/starmagazine/scripts/timthumb.php on line 373
And as a result the image resize operation failed (headers already output).
I'm guessing this occurs where the finfo php extension is not configured or
installed correctly on the server, I fixed the code by adding some simple
error checking for finfo_open(), please see following diff code:
373,375c373,376
< $finfo = finfo_open(FILEINFO_MIME);
< $mime_type = finfo_file($finfo, $file);
< finfo_close($finfo);
---
> if ($finfo = @finfo_open(FILEINFO_MIME)) {
> $mime_type = finfo_file($finfo, $file);
> finfo_close($finfo);
> }
Would appreciate if you could include this patch in your svn trunk code.
Thanks!
Original issue reported on code.google.com by [email protected]
on 11 Nov 2009 at 12:54
In function "show_image" the quality setting for png is incorrect. For some
reason png quality (0-9)
differs from jpg quality (0-100). With jpg 100 is the best quality, with png 0
is the best quality.
Here is the fix I used that works.
elseif( stristr( $mime_type, 'png' ) ) {
$quality = round((100 - $quality)/10);
$quality = ($quality==10) ? 9 : $quality;
imagepng( $image_resized, $cache_file_name, $quality );
}
Original issue reported on code.google.com by [email protected]
on 4 Oct 2008 at 9:40
What steps will reproduce the problem?
1. clear browser cache
2. request a page with an image that has been resized with timthumb
3. image shows up as a red x on ie
4. reload page
5. image shows up fine
What is the expected output? What do you see instead?
resized image, red box
What version of the product are you using? On what operating system?
1.09, linux, ie8.06
Please provide any additional information below.
I saw that this was an issue and tried using the latest source code. But
the issue is still there
Original issue reported on code.google.com by [email protected]
on 18 Nov 2009 at 12:26
What steps will reproduce the problem?
1. Install wampserver
2. Run the script...
What is the expected output? What do you see instead?
An images...
What version of the product are you using? On what operating system?
XP phph 5.3
Please provide any additional information below.
It sends only the url back... Ithink because it uses some deprecated
functions like eregi..
Original issue reported on code.google.com by [email protected]
on 7 Oct 2009 at 2:54
What steps will reproduce the problem?
1. The original uploaded JPG -->
http://greensidegolf.wwc.co.za/wp-content/uploads/2009/04/thailand_cimarrone-gcc
1.jpg
2. The re-sized PNG file -->
http://greensidegolf.wwc.co.za/wp-content/themes/greensidegolf/thumbs.php?src=/w
p-content/uploads/2009/04/cimarrone-gcc.jpg&w=469&h=280&zc=1&q=75
3.
What is the expected output? What do you see instead?
The file-size of the re-sized JPG should not be 10 times bigger. 20kb -->
200kb. It also changed the file to a PNG which is ok, but not sure if that
is the default behavior
What version of the product are you using? On what operating system?
1.07 running on a linux server
Please provide any additional information below.
If there is any other information you need, please let me know!
Thanks Jason
Original issue reported on code.google.com by jasonbagley
on 14 Apr 2009 at 11:22
What steps will reproduce the problem?
1. On Windows 2008 IIS7 there is a lag time of 10 to 20 seconds were the
CPU time gets to 100% until generate the resized/cropped image.
2. When there is 2 or more images being resized the scrip usually return an
error.
3. When there are a lot of images being resized at the same time, the
memory gets all used and the server freezes and needs to be rebooted.
What is the expected output? What do you see instead?
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be
displayed.
What version of the product are you using? On what operating system?
Latest
Please provide any additional information below.
You can try it here. There is no thumb for this picture stored
http://hypescience.com/scripts/timthumb.php?src=/wp-
content/uploads/2009/01/patrick-swayze-t.jpg&h=150&w=150&zc=1
Thank you,
Marcelo
Original issue reported on code.google.com by [email protected]
on 28 Apr 2009 at 1:02
Reducing a GIF in quality will discard the transparency of the image,
resulting in a black background. This can be duplicated with or without
heights and widths specified, as well as with and without zoom-crop.
Original issue reported on code.google.com by mmeehan%[email protected]
on 28 Jul 2008 at 5:22
The problem is, when it tries to resize a big image something like 3000 x
it doesn`t work. It shows a blank page
Original issue reported on code.google.com by [email protected]
on 14 Sep 2009 at 1:19
Looks 'q' changed to a number 9 in rev36
http://code.google.com/p/timthumb/source/detail?r=36
Slick get_request function btw.
Original issue reported on code.google.com by [email protected]
on 7 Jul 2008 at 6:37
Somehow I get error on using resizer. What I try to create other photos
everyting seems to be ok, but on few photos this shows:
"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to
allocate 15004 bytes) in /home/domain.com/lt/public_html/core/resizer.php
on line 293"
Tried to clean catche, but no success, Please advice.
Original issue reported on code.google.com by [email protected]
on 6 Dec 2009 at 12:24
hello,
i want write my site url on images
can you edit it.
thank you
Original issue reported on code.google.com by [email protected]
on 3 Jun 2009 at 7:47
What steps will reproduce the problem?
1. Take a smaller image and set a resize to a larger w x h, the image will
be enlarged instead of being left as is.
Original issue reported on code.google.com by [email protected]
on 14 Apr 2008 at 7:44
What steps will reproduce the problem?
1. Insert a javascrpt in the URI and the browser will execute it. See
sample script below.
http://www.somewebsite.com/wp-content/themes/mytheme/scripts/timthumb.php?src=ht
tp%3A%2F%2Fwww.somewebsite.com%2Ffiles%2F2009%2F11%2FSomeImage.gif%22%3E%3Cscrip
t%3Ealert%28123%29%3C%2Fscript%3E&=&zc=1&w=120&h=90%22
What is the expected output? What do you see instead?
It should do string validation to prevent scripts form executing. Removing
"<" and ">" would likely do the trick.
What version of the product are you using? On what operating system?
Latest version as far as I know.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 2 Dec 2009 at 10:17
I don't see the point of this code block:
// don't allow new width or height to be greater than the original
if( $new_width > $width ) {
$new_width = $width;
}
if( $new_height > $height ) {
$new_height = $height;
}
If I specify that I want a height of 200 and a width of 400 with zoom yes
(zc=1) then I want it to create an image that size, regardless of the
original size.
I commented that block out and it seems to work fine.
Original issue reported on code.google.com by spamprotection
on 5 Mar 2009 at 8:40
What steps will reproduce the problem?
1. Host has told me that the site I run will be disabled if I cannot fix
timthumb. Apparently it's hogging big resources on the shared server I'm
operating from. Host says problem is that the images are being created on
the fly each time and are not cached.
2. However cached files are created so I think it might be to do with a
full(as in 250 files) cache that won't flush itself.
What is the expected output? What do you see instead?
How can I check that timthumb is using the cached versions? Any ideas or
help?
What version of the product are you using? On what operating system?
Linux, 1.09, Wordpress.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2009 at 10:40
Hi, i'm a beginner, but this looks wrong
'q' will be right if i'm understanding the code correctly?!
Original issue reported on code.google.com by [email protected]
on 23 Nov 2008 at 11:48
When I load my picture with timthumb.php, I have an error in my apache logs
but the picture is ok.
ie:
==> /var/log/apache2/access_log <==
www.mywebsite.com 82.243.xxx.xxx - - [26/Jan/2009:01:42:51 +0100] "GET
/wp-content/themes/arthemia/scripts/timthumb.php?src=/wp-content/uploads/2008/11
/dessert1.jpg&w=150&h=150&zc=1&q=100
HTTP/1.1" 200 5773 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
Win64; x64; .NET CLR 2.0.50727; SLCC1; .NET CLR 3.0.04506; .NET CLR 3.5.21022)"
==> /var/log/apache2/error_log <==
[Mon Jan 26 01:42:50 2009] [error] [client 82.243.xxx.xxx] Usage: file
[-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...
[Mon Jan 26 01:42:50 2009] [error] [client 82.243.xxx.xxx] file -C
-m magicfiles
[Mon Jan 26 01:42:50 2009] [error] [client 82.243.xxx.xxx] Try `file
--help' for more information.
I have changed line 234
$mime_type = trim(@shell_exec('file -bi $file'));
with
$mime_type = trim(@shell_exec('file -bi "$file"'));
and I have no more errors
Original issue reported on code.google.com by grougrou
on 26 Jan 2009 at 12:52
What steps will reproduce the problem?
If you link to an image with an absolute path
http://website.com/timthumb.php?src=http://www.website.com/image.png note
the www triggers an error in many browsers as it's treated as an external
source.
I recommend some sort of preg_replace to ignore url and use ONLY relative
paths. Cross-domain linking doesn't work anyways, so why not have the
script ignore this and process as a relative link:
(this could obviously be simplified and improved, but this works and you
get the point:
// sort out image source
$src = get_request("src", "");
$src = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*?)?)?)@',
'/', $src);
Original issue reported on code.google.com by [email protected]
on 2 Dec 2009 at 12:38
Hi using WordPress...
An image was uploaded and it is only viewable via Firefox and Safari but
not IE...
www.mainecrafts.org
The top Post on home page "Center of Maine Craft"
Should be an image to the left on the post showing a building.
URL used is:
/wp-content/uploads/2009/06/sunday-telegram-sign-photo.jpg
Original issue reported on code.google.com by [email protected]
on 12 Jun 2009 at 1:34
Attachments:
allow to move the croped area verticaly
fixed: quality.. get_request
$quality = preg_replace( "/[^0-9]+/", "", get_request( 'q', 80 ) );
insted of
$quality = preg_replace( "/[^0-9]+/", "", get_request( '9', 80 ) );
Original issue reported on code.google.com by [email protected]
on 23 Nov 2008 at 1:42
Attachments:
What steps will reproduce the problem?
1. Already installed
2. I tried to change something into timthumb.php but i'm noob!
What is the expected output? What do you see instead?
I installed a theme on Wordpress with this plugin already in, but as you
can see, in the header, i can't see the picture, only at the bottom. The
link for the pict is correct.
What version of the product are you using? On what operating system?
Wordpress 2.8.6 on Linux
Please provide any additional information below.
You can see it @ http://beta.monespacepersonnel.net
Original issue reported on code.google.com by [email protected]
on 18 Nov 2009 at 9:59
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.