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
  #1  
Old 11-17-2006, 08:28 AM
tobbe_81 tobbe_81 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 19
Red face Copy pixel by pixel

Hello!

I have little problem with a thing in PSP.
Im trying to make an macro that read pixel by pixel of an image, then save it to an file.

Ex. a 5x5 picture:

first pixel on first row should be copied to an 1x1 pixel file, named 01.jpg.
then the 2nd pixel on the first row should be copied to an 1x1 pixel file, named 02.jpg. And so on.. this is alot of work to do manually!
Is this even possible to achive with an psp macro??

The coolest thing would be that if psp can read the hexcode of each pixel in a picture, then save all the color codes starting from 1st row, 1st pixel
Then make an html file with a table where each TD represent one pixel.

Im wierd i know, but hey - cool if this works =)


Any skilled here that can help me?
Reply With Quote top
  #2  
Old 11-17-2006, 10:30 PM
Craig Walters's Avatar
Craig Walters Craig Walters is offline
Senior Member
 
Join Date: Apr 2005
Location: somewhere over there
Posts: 8,786
Blog Entries: 4
Re: Copy pixel by pixel

welcome to RP, tobbe.

since no one else seems to have jumped in on this, let me just say that first, i'm not qute sure i'm getting exactly what you want here. if i read this right you want to save out the color code of every pixel into a separate image or something. you do realize that most images today, in uncompressed format, run into mega pixels, right? that would mean you would have over 1 million files from one image.

second, do you mean 'scripts' instead of macros?

and in this sentence, "where each TD represent one pixel." what is TD?

and if you want the hexcodes of the image, why not just get a hex editor and load the image in that and do a dump to a text file?
Reply With Quote top
  #3  
Old 11-18-2006, 04:21 AM
NancyJ's Avatar
NancyJ NancyJ is offline
Senior Member
 
Join Date: Jun 2004
Posts: 729
Re: Copy pixel by pixel

A TD is a table cell in HTML Craig.

I dont know about PSP but its certainly possible to do in a web scripting language eg. PHP
Reply With Quote top
  #4  
Old 11-18-2006, 08:24 AM
Craig Walters's Avatar
Craig Walters Craig Walters is offline
Senior Member
 
Join Date: Apr 2005
Location: somewhere over there
Posts: 8,786
Blog Entries: 4
Re: Copy pixel by pixel

ah, thanks nancy.
Reply With Quote top
  #5  
Old 11-20-2006, 01:42 AM
tobbe_81 tobbe_81 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 19
Re: Copy pixel by pixel

Hello!

I'll try to explain a little better

I want to extract either the color codes of each pixel, or copy pixel by pixel from source image to an new image. Yeah i understand that on large hires photos this is crazy, but i only gonna test it on smaller images

I´ve done a litte illustration to better show what i mean.

With macro i mean the "actions" u can make in PSP

And yes, with TD i mean a cell in a table.

The hexeditor is an idea, but i wonder if i can get the #xxxxxx value straight out from a file? Many diffrent formats, with compression and so on, this way can be har i think?

Thanks for concern!

Best Regards, Tobbe
Attached Images
File Type: jpg pixel.jpg (19.6 KB, 24 views)
Reply With Quote top
  #6  
Old 11-20-2006, 10:20 AM
manta1900 manta1900 is offline
Senior Member
 
Join Date: Jun 2006
Posts: 129
Re: Copy pixel by pixel

I believe that you have a very good reason for this. So I created this filter for you. When you run it it creates "c:\tab.html" file with the "table" tag you need for the current image (right-click and edit to see the source).

I hope that's what you want... cause it wasn't that easy.

Enjoy
Attached Files
File Type: zip ImgToTable.zip (79.0 KB, 11 views)

Last edited by manta1900; 11-20-2006 at 01:30 PM.
Reply With Quote top
  #7  
Old 11-21-2006, 01:18 AM
tobbe_81 tobbe_81 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 19
Smile Re: Copy pixel by pixel

Quote:
Originally Posted by manta1900
I believe that you have a very good reason for this. So I created this filter for you. When you run it it creates "c:\tab.html" file with the "table" tag you need for the current image (right-click and edit to see the source).

I hope that's what you want... cause it wasn't that easy.

Enjoy
Hello!
Manta1900, i must say im really happy for the help! Thanks ALOT mate!!!
It works exactly as i had in mind!!

I must ask, how did you manage to fix this??! Its a plugin now and all

I´ll post some results here later!

And thanks again Manta!

Best Regards, Tobbe
Reply With Quote top
  #8  
Old 11-21-2006, 05:00 AM
manta1900 manta1900 is offline
Senior Member
 
Join Date: Jun 2006
Posts: 129
Re: Copy pixel by pixel

Quote:
Originally Posted by tobbe_81
Hello!
I must ask, how did you manage to fix this??! Its a plugin now and all
I'm a computer programmer with photography (and computer programming) as a hobby. I like people who are searching deeper than just using their computer. I hope you will manage to create what you want. To create such filters use filtermeister. It's also a plug-in that you can create others.

I hope that helped you. If you need more help... just ask.


Waiting for your results...
Reply With Quote top
  #9  
Old 11-21-2006, 05:46 AM
Cameraken's Avatar
Cameraken Cameraken is offline
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,158
Re: Copy pixel by pixel

Nice One Manta.

Here is part of my avatar

Code:
<td width="1" height="1" bgcolor="#33ff00"/>
    <td width="1" height="1" bgcolor="#33ff00"/>

    <td width="1" height="1" bgcolor="#33ff00"/>
    <td width="1" height="1" bgcolor="#33ff00"/>
    <td width="1" height="1" bgcolor="#33ff00"/>
    <td width="1" height="1" bgcolor="#0000ff"/>
    <td width="1" height="1" bgcolor="#0000ff"/>
    <td width="1" height="1" bgcolor="#0000ff"/>
    <td width="1" height="1" bgcolor="#33ff00"/>
    <td width="1" height="1" bgcolor="#33ff00"/>
    <td width="1" height="1" bgcolor="#0000ff"/>

    <td width="1" height="1" bgcolor="#0000ff"/>
    <td width="1" height="1" bgcolor="#33ff00"/>

Ken.
Reply With Quote top
  #10  
Old 11-21-2006, 05:58 AM
manta1900 manta1900 is offline
Senior Member
 
Join Date: Jun 2006
Posts: 129
Re: Copy pixel by pixel

Just a warning: Internet Explorers will not function correctly (nor fast) with big "table images".

Happy coding!
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 04:29 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