PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Nov 28, 2014 3:25 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Feb 19, 2011 8:31 am 
Offline
Forum Newbie

Joined: Sat Feb 19, 2011 7:58 am
Posts: 1
Hi I need some help with photo uploads. I got everything working perfectly including creating several thumbnails of varying sizes for testing. However I am running into problems of photos coming out dull.

My Photos appear colorful in lightroom, Photoshop, and windows live photo gallery and in windows. Except in my browsers.

Heres what I am doing:

1. Upload file to server, get exif Data and then rename and use move_uploaded_file to main user folder.
2. Copy the original file using copy($file, $newfile)
3. resize copied image using
a.imagecreatefromjpeg
b.imagecreatetruecolor
c.imagecopyresampled
d.imagejpeg
e.imagedestroy

My Questions:
1. is imagecreatetruecolor changing the photo colors?
2. is imagecopyresampled not copying all the colors?
3. is imagejpeg rendering the colors correctly?

Now I have searched the google globe only to find that it is a color profile issue on 1 website. How do i read the correct color profile using php and apply it to the images for correct viewing in browsers?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: ckblackmoncler and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group