![]() |
Gd images
How would I get images to stay in the imagecreatetruecolor, so I don't have to see the black?
|
Please provide a less obscure description of your problem...
|
Quote:
imagecreatetruecolor, the background is black, and no matter how much I try when using imagecopyresampled, it will show the background imagecreatetruecolor |
imagecreatetruecolor() returns an image identifier representing a black image of the specified size.
in order to change the background colour you can use the following script. PHP Code:
|
Quote:
|
I'm guessing your trying to do transparency images?
|
Quote:
|
Quote:
|
How about giving everyone a visual example (starting images [yes, from the database], resulting images [with black backgrounds] and the appropriate code you're using [or all of it])?
|
Sorry Rendair, hang on, lemme try to make it better..
![]() Say that the black was the imagecreatetruecolor width and height, when cropping images, it does this to me, when just resizing it, its fix, how would I get this? Say, to a certain point of which the image width ends, I dont want imagecreatetruecolor width's black, I would it to be stopped, how would I do this? Or shall I delete this thread, and figure it out myself? I don't know what else to say. :/ |
Well, I'd suggest you calculate the thumbnail dimensions BEFORE creating the virtual image to store the thumb into. Then, you wouldn't have problems with imagecopyresampled. If the image has some transparent pixels around it, run a function on the image to see where is the image ending (imagecolorat).
|
Quote:
|
Mind posting your code :D & db table example
|
| All times are GMT. The time now is 08:00 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0