Jump to content

Extracting pixel hexcodes via plugin?


Go to solution Solved by Ego Eram Reputo,

Recommended Posts

There are plugins that generate a palette from an image. You'd want that. I have no idea how it might sort the colors, but if it sorts them at all then it would be sorted by alpha first by default, since PDN palettes are ARGB colors (A = alpha)

This one sounds good: https://forums.getpaint.net/topic/117823-make-palette-plugin-v10-february-15-2021/
Here's the plugin index to find others https://forums.getpaint.net/topic/15260-plugin-index/

Link to comment
Share on other sites

  • Solution

My   CSV filetype plugin could be useful here. Copy your selection to a new image, then save it as a *.CSV file based on the color format/structure you want. You'll have to do the sorting yourself (tip: load the CSV file into Excel or a Google sheet).

 

Data_Structures.png

Link to comment
Share on other sites

7 hours ago, Ego Eram Reputo said:

My   CSV filetype plugin could be useful here. Copy your selection to a new image, then save it as a *.CSV file based on the color format/structure you want. You'll have to do the sorting yourself (tip: load the CSV file into Excel or a Google sheet).

 

Data_Structures.png

RGBx? BGRx? What do those mean?

G'MIC Filter Developer

 

I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me.

Link to comment
Share on other sites

12 hours ago, Ego Eram Reputo said:

Screenshot.thumb.png.e45275f7ed81000642d01fcabbad386b.pngMy   CSV filetype plugin could be useful here. Copy your selection to a new image, then save it as a *.CSV file based on the color format/structure you want. You'll have to do the sorting yourself (tip: load the CSV file into Excel or a Google sheet).

 

Data_Structures.png

Is there a way to save the other pixels in a different Column?
So B1, B2,B3 etc.

They all get send on one Column A1, A2,A3 etc.




 

 

Link to comment
Share on other sites

Are selection rectangles/squares? If so, I have a easy solution for you. Should there be duplicates?

Edited by Reptillian

G'MIC Filter Developer

 

I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me.

Link to comment
Share on other sites

8 hours ago, NinthDesertDude said:

I do believe I mentioned a plugin intended for this problem, I would take a look (I guess it might not work after reading through the thread, it looks very hazy)

image.png.e650e157e0258c97e128a9cdad0a4054.pngInstallation doesn't work anymore



image.thumb.png.8fb98bbc08b7e9e48d166af4e942cee3.png

Edited by Mich4x
Link to comment
Share on other sites

11 hours ago, Reptillian said:

Are selection rectangles/squares? If so, I have a easy solution for you. Should there be duplicates?

Yes there are duplicates, thats not the problem, my Issue is that they are under one Column which makes it hard to delete the duplicates.
"Are selection rectangles/squares?" - What I did is get a 16x14 Picture and then export it as a csv. file.

The Picture itself is made out of squares*  This is the Picture I used -> image.png.bf70b2cbf8315893029488b688913059.png
I understand the numbers, one RGB code = One Pixel, one Column has 16RGB Codes x 14 rows, but its is just harder to work with it if the 16 RGB Codes are in the same Column (A1,A2...etc.)

Edited by Mich4x
Link to comment
Share on other sites

7 hours ago, Mich4x said:

Yes there are duplicates, thats not the problem, my Issue is that they are under one Column which makes it hard to delete the duplicates.
"Are selection rectangles/squares?" - What I did is get a 16x14 Picture and then export it as a csv. file.

The Picture itself is made out of squares*  This is the Picture I used -> image.png.bf70b2cbf8315893029488b688913059.png
I understand the numbers, one RGB code = One Pixel, one Column has 16RGB Codes x 14 rows, but its is just harder to work with it if the 16 RGB Codes are in the same Column (A1,A2...etc.)

 

I used your picture, and I'd have to ask if you want the output to look something like this:

 

Spoiler
AARRGGBB

FF313739
FF35373D
FF35373B
FF37393C
FF383A3D
FF393B40
FF3A3B3F
FF393B3F
FF313C3B
FF3A3C3F
FF3B3C3F
FF3B3D40
FF3C3D41
FF3B3D41
FF3C3D43
FF3C3E41
FF3D3E41
FF3D3F41
FF3E3F43
FF3E3F42
FF3D3F42
FF404042
FF3F4043
FF3E4044
FF3F4045
FF3F4042
FF3E4042
FF404041
FF3F4143
FF414145
FF424244
FF3E4249
FF404248
FF404245
FF31423D
FF424243
FF434346
FF434345
FF28443B
FF2F473E
FF2D483F
FF21493C
FF1D4A38
FF224A3C
FF234A3D
FF2B4B44
FF164B36
FF234B3C
FF204B39
FF244B3D
FF1F4C39
FF264C3F
FF214C3B
FF264C3E
FF264D3E
FF274D3F
FF274E3F
FF25503E
FF115035
FF1A543C
FF0D5635
FF065935
FF055A35
FF045C35
FF035C35
FF085E36
FF025E35
FF075F38
FF035F35
FF036036
FF046137
FF05613A
FF006234
FF006231
FF006431
FF006433
FF006635
FF006830
FF006833
FF006D30
FF006F30
FF007038
FF00712F
FF007236
FF007435
FF00742F
FF007534
FF00752F
FF007634
FF007633
FF00762F
FF007630
FF00772E
FF007832
FF007830

 

 

G'MIC Filter Developer

 

I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me.

Link to comment
Share on other sites

4 minutes ago, Reptillian said:

 

I used your picture, and I'd have to ask if you want the output to look something like this:

 

  Hide contents
AARRGGBB

FF313739
FF35373D
FF35373B
FF37393C
FF383A3D
FF393B40
FF3A3B3F
FF393B3F
FF313C3B
FF3A3C3F
FF3B3C3F
FF3B3D40
FF3C3D41
FF3B3D41
FF3C3D43
FF3C3E41
FF3D3E41
FF3D3F41
FF3E3F43
FF3E3F42
FF3D3F42
FF404042
FF3F4043
FF3E4044
FF3F4045
FF3F4042
FF3E4042
FF404041
FF3F4143
FF414145
FF424244
FF3E4249
FF404248
FF404245
FF31423D
FF424243
FF434346
FF434345
FF28443B
FF2F473E
FF2D483F
FF21493C
FF1D4A38
FF224A3C
FF234A3D
FF2B4B44
FF164B36
FF234B3C
FF204B39
FF244B3D
FF1F4C39
FF264C3F
FF214C3B
FF264C3E
FF264D3E
FF274D3F
FF274E3F
FF25503E
FF115035
FF1A543C
FF0D5635
FF065935
FF055A35
FF045C35
FF035C35
FF085E36
FF025E35
FF075F38
FF035F35
FF036036
FF046137
FF05613A
FF006234
FF006231
FF006431
FF006433
FF006635
FF006830
FF006833
FF006D30
FF006F30
FF007038
FF00712F
FF007236
FF007435
FF00742F
FF007534
FF00752F
FF007634
FF007633
FF00762F
FF007630
FF00772E
FF007832
FF007830

 

 

Ideally in an excel sheet format, or something which would show what y and x axis the pixel was on.

In the excelsheet the format, the 1-14 row would represent the pixels on y and then what the x axis pixels would be on the letters A-O in this picture.

I don't mind Hexcodes, but it would be nice to have a RGB Code too.

Screenshot.png

Link to comment
Share on other sites

On 9/14/2022 at 11:31 PM, Reptillian said:

RGBx? BGRx? What do those mean?

 

Color channels. Red, Green, Blue & Alpha. You can replace X with a set value (allows you to set the alpha value manually).

 

4 hours ago, Mich4x said:

Ideally in an excel sheet format, or something which would show what y and x axis the pixel was on.

 

The CSV plugin transcribes rows starting from the top left. You can specify rows by adding a linefeed at the end of the row. E.g. this structure...

 

image.png

 

Gives this output

csvoutput.png

The size of the output should match the image dimensions. ^this demo image was a 32x32 pixel icon.

Link to comment
Share on other sites

@Ego Eram Reputo By the way, could you change the title? It's a misnomer going from the conversation. Hexcode detection plugin could be not CSV-related.

Edited by Reptillian

G'MIC Filter Developer

 

I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me.

Link to comment
Share on other sites

  • Ego Eram Reputo changed the title to Extracting pixel hexcodes via plugin?

Done.

 

4 minutes ago, Reptillian said:

Hexcode detection plugin could be not CSV-related.

 

Disagree. CSV stands for comma separated values - so hexcodes are entirely valid in a CSV file.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...