| Notices | Welcome to RetouchPRO . You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload images and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. | | 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 | 
11-17-2006, 08:28 AM
| | Junior Member | | Join Date: Nov 2006
Posts: 19
| | 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? | 
11-17-2006, 10:30 PM
|  | Moderator | | Join Date: Apr 2005 Location: somewhere over there
Posts: 6,730
| | | 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? | 
11-18-2006, 04:21 AM
|  | Senior Member Patron | | Join Date: Jun 2004
Posts: 730
| | | 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 | 
11-18-2006, 08:24 AM
|  | Moderator | | Join Date: Apr 2005 Location: somewhere over there
Posts: 6,730
| | | Re: Copy pixel by pixel ah, thanks nancy. | 
11-20-2006, 01:42 AM
| | 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 | 
11-20-2006, 10:20 AM
| | Senior Member | | Join Date: Jun 2006
Posts: 117
| | | 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
Last edited by manta1900; 11-20-2006 at 01:30 PM.
| 
11-21-2006, 01:18 AM
| | Junior Member | | Join Date: Nov 2006
Posts: 19
| | 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 | 
11-21-2006, 05:00 AM
| | Senior Member | | Join Date: Jun 2006
Posts: 117
| | | 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... | 
11-21-2006, 05:46 AM
|  | Senior Member | | Join Date: Feb 2005 Location: Lancashire (UK)
Posts: 1,112
| | | 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. | 
11-21-2006, 05:58 AM
| | Senior Member | | Join Date: Jun 2006
Posts: 117
| | | Re: Copy pixel by pixel Just a warning: Internet Explorers will not function correctly (nor fast) with big "table images".
Happy coding! | 
11-21-2006, 06:45 AM
|  | Senior Member | | Join Date: Jun 2006
Posts: 265
| | | Re: Copy pixel by pixel When I read this thread I feel like a 4 year old | 
11-21-2006, 07:14 AM
| | Junior Member | | Join Date: Nov 2006
Posts: 19
| | | Re: Copy pixel by pixel Quote: |
Originally Posted by manta1900 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... | Hey!
Ahh that sounds really fun! Nice to make own filters and so, cool
Im at work now, but ivé tested a few pics, works nice!
Altough if u take a little bigger images, IE goes waco ;D
I gonna laborate more with this when im @ home!
Thanks again mate
Have a nice day, Tobbe | 
11-21-2006, 07:24 AM
| | Senior Member | | Join Date: Jun 2006
Posts: 117
| | | Re: Copy pixel by pixel Quote: |
Originally Posted by Godmother When I read this thread I feel like a 4 year old  | It's OK Godmother. There is nothing wrong with you.... WE are the nerds! (and we like it) | 
11-21-2006, 07:56 AM
| | Junior Member | | Join Date: Nov 2006
Posts: 19
| | | Re: Copy pixel by pixel Quote: |
Originally Posted by manta1900 It's OK Godmother. There is nothing wrong with you.... WE are the nerds! (and we like it)  | Couldn´t say it better my self =)
Did a quick test, look here: http://test.tobbe13.com/ | 
11-21-2006, 08:06 AM
| | Senior Member | | Join Date: Jun 2006
Posts: 117
| | | Re: Copy pixel by pixel Quote: |
Originally Posted by tobbe_81 | Nice job Tobbe... though it is too slow! |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -6. The time now is 03:48 PM. | |
|