RetouchPRO

Go Back   RetouchPRO > Technique > Image Help
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Image Help Got a problem image? Don't know where to begin? Upload images and ask our users what they think or if they can help

Copy pixel by pixel

Reply
 
Thread Tools
  #21  
Old 11-21-2006, 08:55 AM
tobbe_81 tobbe_81 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 19
Re: Copy pixel by pixel

Btw im working on trying to make some nice effects on the table aswell, but im at work atm, and have much to do =) But its coming more
Reply With Quote top
  #22  
Old 11-21-2006, 09:07 AM
NancyJ's Avatar
NancyJ NancyJ is offline
Senior Member
 
Join Date: Jun 2004
Posts: 729
Re: Copy pixel by pixel

I'm not saying never ask for help when you need it - I was just saying that if you're doing something just for the sake of doing it - doesnt it defeat the point if you get someone else to do it for you?
Reply With Quote top
  #23  
Old 11-21-2006, 09:24 AM
tobbe_81 tobbe_81 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 19
Re: Copy pixel by pixel

Quote:
Originally Posted by NancyJ
I'm not saying never ask for help when you need it - I was just saying that if you're doing something just for the sake of doing it - doesnt it defeat the point if you get someone else to do it for you?
But as i tried to say before, i have worked alot with trying this to work automaticly, ive done several images there i have taken the color pixel by pixel and inserted to a table, manually...
I have also tried alot of ways to make this work by making actions in PSP, but without sucess

So thats why i posted this..Because i reach my limitation..
Reply With Quote top
  #24  
Old 11-21-2006, 09:37 AM
NancyJ's Avatar
NancyJ NancyJ is offline
Senior Member
 
Join Date: Jun 2004
Posts: 729
Re: Copy pixel by pixel

I've done the same thing myself - ages ago - the point of what I was doing was an online photo mosaic generator but just for fun a drew a scaled down picture of the photograph
http://www.fearofbodd.com/headshot3.php
But since it has no practical application, using someone elses code would have defeated the object of doing it
Reply With Quote top
  #25  
Old 11-21-2006, 09:48 AM
tobbe_81 tobbe_81 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 19
Re: Copy pixel by pixel

Quote:
Originally Posted by NancyJ
I've done the same thing myself - ages ago - the point of what I was doing was an online photo mosaic generator but just for fun a drew a scaled down picture of the photograph
http://www.fearofbodd.com/headshot3.php
But since it has no practical application, using someone elses code would have defeated the object of doing it


Thats almost the same thing that i wanted to achive!

Soo, how did you make it work?
Reply With Quote top
  #26  
Old 11-21-2006, 09:50 AM
NancyJ's Avatar
NancyJ NancyJ is offline
Senior Member
 
Join Date: Jun 2004
Posts: 729
Re: Copy pixel by pixel

Its really very simple - I give the script the name of the image - it reads the file and gets the rgb of every pixel and then prints a 1x1 table cell of that colour
Reply With Quote top
  #27  
Old 11-21-2006, 09:52 AM
NancyJ's Avatar
NancyJ NancyJ is offline
Senior Member
 
Join Date: Jun 2004
Posts: 729
Re: Copy pixel by pixel

PHP Code:

<?

print "<table border=0 cellpadding=0 cellspacing=0 width=\"100%\">\n<tr>";

$image imagecreatefromjpeg("headshot2.jpg");

$xdim imagesx($image);

$ydim imagesy($image);

for (
$y 1$y <= $ydim-1$y++) {

for (
$x 1$x <= $xdim-1$x++) {

$rgb imagecolorat($image$x$y);

$r = ($rgb >> 16) & 0xFF;

$g = ($rgb >> 8) & 0xFF;

$b $rgb 0xFF;

print 
"<td width = \"0.32%\" height= \"0.32%\" style=\"background-color: rgb($r, $g, $b);\"></td>";

}

print 
"</tr>\n<tr>";

}

print 
"</tr></table>";

?>
Reply With Quote top
  #28  
Old 11-21-2006, 09:53 AM
manta1900 manta1900 is offline
Senior Member
 
Join Date: Jun 2006
Posts: 129
Re: Copy pixel by pixel

Quote:
Originally Posted by NancyJ
I've done the same thing myself - ages ago - the point of what I was doing was an online photo mosaic generator but just for fun a drew a scaled down picture of the photograph
http://www.fearofbodd.com/headshot3.php
But since it has no practical application, using someone elses code would have defeated the object of doing it

Nice work nancy.

If you don't mind... I reassembled the picture and "retouched" it... just to prove that "imageless" images are not safe either (just a waste of time).
Attached Images
File Type: jpg nancy.jpg (67.8 KB, 11 views)
Reply With Quote top
Reply

  RetouchPRO > Technique > Image Help


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a copy of Grain Surgery for Mac trans40 Software 4 06-26-2007 07:31 PM
NYTimes article: Looking Perfect, One Pixel at a Time mellyrose Photo Retouching 6 05-01-2007 08:24 AM
Copy and Paste nebgranny Photoshop Help 2 08-20-2005 10:47 PM
Convoluted Copy Protection Swampy Work/Jobs 7 04-16-2005 09:47 AM
BW Copy Neg vs. Scanning Test roger_ele Input/Output/Workflow 18 01-25-2003 11:17 PM


All times are GMT -6. The time now is 06:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved