Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 24066 Details for
Bug 38693
Color Distortion with PHP and GD Image Library
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Code to demonstrate the bug.
thumbnail.php (text/plain), 505 bytes, created by
PJ
on 2004-01-19 02:34:00 UTC
(
hide
)
Description:
Code to demonstrate the bug.
Filename:
MIME Type:
Creator:
PJ
Created:
2004-01-19 02:34:00 UTC
Size:
505 bytes
patch
obsolete
><?PHP > >$orig_image = imagecreatefromjpeg("http://dev.gentoo.org/~seemant/pictures/seemant.jpg"); > ># Uncomment this code to show that the image is fine until the reize. ># imagejpeg($orig_image, "", 100); ># exit; > >$thumb_image = imagecreate((imagesx($orig_image)/2), (imagesy($orig_image)/2)); > >imagecopyresized($thumb_image, $orig_image, 0, 0, 0, 0, (imagesx($orig_image) / 2), ( imagesy($orig_image) / 2), imagesx($orig_image), imagesy($orig_image)); > >imagejpeg($thumb_image, "", 100); > >?>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38693
: 24066 |
24067