![]() |
Ok, i played around with it. Please notice that i know nothing about PHP, but i was able to track down the Problem:
If i change: if ($width_factor > $height_factor) { $nw = round($w / $width_factor); $nh = round($h / $width_factor); } to: if ($width_factor > $height_factor) { $nw = 400 ; $nh = round($h / $width_factor); } it works. 500,600,1000 -> Anything bigger 400 don?t. I guess that for some reasons ImeageCreateTrueColor don?t like big numbers.. but i have no Ideas why. The image i used was a Standart jpg with 1600*1200. Size played no role. I would really apreciate your help on this topic, as i will definitly extend this genius hack ! What i want to add: -Other extension (.jpeg,.jpe ...) -File size Does anybody know if GDlib can read EXIF Data ? (Yes my English sucks ;)) |
Sorry. It works with 450 and 500. But 600 is to mutch. This makes me sick.
(And it is not "ImageCopyResampled". The following line works just fine: ImageCopyResampled($ni,$im,0,0,0,0,1000,$nh,$w,$h) ; ) |
If somebody else has the same Problem: As a workaround i use:
$width_factor = $w / 500; $height_factor = $h / 500; if ($width_factor > $height_factor) { $nw = round($w / $width_factor); $nh = round($h / $width_factor); } else { $nw = round($w / $height_factor); $nh = round($h / $height_factor); } $ni=imagecreatetruecolor($nw,$nh); ImageCopyResampled($ni,$im,0,0,0,0,$nw,$nh,$w,$h); UnsharpMask($ni); |
And i found a Bug: If more than one Image is resized, the script returns an error 500. However the first one is still uploaded.
Anybody else with this error ? |
thanks mini2, installed and working on my vBulletin Version 3.0.7 Forum. :classic:
|
Great! this hack work for my bloggers forum. There is other similar hack too, but it does not work. :)
Thank you! |
I started to install this hack on 3.0.3
but in the functions_file.php I could not find the section that says: Code:
@unlink($attachment); |
for attachments is it possible for them to be clikabkle?
|
Quote:
|
Quote:
I did some more checking and found that .JPG will darken but .GIF doesn't. So use paint shop or photo shop to change from a JPG to GIF, this should solve this problem. If it does, please post so other will know if it works. |
All times are GMT. The time now is 07:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|