-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMS #17
Comments
Looks like PANTONE is not a color system but a handpicked color standardization, and I'm not sure if there's a system We can search by hex here, at the official site https://store.pantone.com/eu/en/colorfinder/index/search/q/#ffffff where #ffffff is color hex I tried to fetch() pages but looks like they load search result async with delay and maybe do some checks to prevent crawling/parsing - or maybe I'm just doing something wrong some PANTONE to RGB / CMYK / HEX tables can be found online but I'm not sure they are complete
|
All designer software installs with color libraries, right? For example, Adobe store libraries in its own proprietary binary format - .acb (Adobe Color Book)
I have found acb2xml convertor (source code in C++ https://github.com/atesgoral/acb2xml and compiled .exe file https://magnetiq.ca/pages/freeware/#acb2xml for Windows console); Also, I have found a topic at the Adobe forums (https://forums.adobe.com/thread/435262) where in one of the comments I have found a link to ExtendScript (Adobe version of JS v1.6 with custom DOM/BOM for Adobe software, that allows writing scripts/extensions for Adobe software) - this script runs directly from Photoshop/InDesign etc. and can convert Adobe's .acb file to .json format; - here's the link for that script - http://www.tonton-pixel.com/scripts/utility-scripts/parse-color-book-file/; The problem is that this script was written for Adobe CS3 and dosn't work in modern CC out of the box - there are errors... I commented lines that produce errors (LOL) and was able to get .json files from .acb but can't be sure if the file were converted properly since there were errors in the outdated code... But maybe we don't need to do any conversions and can directly read .acb files as binary (I don't know how to work with binaries, especially in JS); The problem is that we might have problems because of publishing and distribute reverse-engineered Adobe files with 3rd party color pallets... So it might be better to create a website/web service with REST API that will store color libs info... Affinity Designer from Serif (haven't checked Affinity Photo yet) installs with PANTONE libs as .csv files (Yay!!!) and also contains some Pantone libs that Adobe is missing, such as:
UPD: 3) There are a lot of color variations like: UPD: 4) Pantone Numbering Explained https://www.pantone.com/pantone-numbering-explained Need to check if other software (Corel, Autodesk, Sketch, etc.) has color libs that can be examined UPD: .csv format is probably the best text format for storing color libs as we can read file line-by-line while searching for value or do a RegExp for entire file |
OK, I'm probably doing it all wrong, but it works, somehow (at least for now, lol) You need to have CORS enabled in your [Chrome] browser (with a plugin or with a flag --disable-web-security or something like that) get HEX/RGB/CMYK by Pantone code (parse official Pantone website search result) - https://gist.github.com/olehmelnyk/40f46c7f05bf2fdd6d897338a48755c6 Parsing 3rd party website for RGB to Pantone https://gist.github.com/olehmelnyk/0aff52f300ef6f778b3a9ab03b5f7bfd Parse from search result, manually, browser-only |
@olehmelnyk https://en.wikipedia.org/wiki/Pantone#Intellectual_property — the problem is not technical, but legal, unfortunately. I wonder if we approximate pantone with some intellectual algo — would it be considered an intellectual infringement or not. We can reverse-engineer pantone and release it open-source, but that is a bit useless − not sure who may need hacked pantone system, that is just not serious, business-wise. |
Yeah, I think we should understand the difference between color mode that can be calculated and color pallet which might be just a set of handpicked values, names and be an intellectual property... So I suggest to split this library into two - one for color modes only and the other for color pallets. |
Looks like Pantone allows to share its libraries with a workgroup:
Now I got all the latest and greatest libraries/pallets/swatches from PANTONE Color Manager as .acb files - all with LAB color values as it has wider gamut compared to sRGB and CMYK So, theoretically, we can share .acb files on the server, so our workgroup [all across the globe] can have access to them. Of course, we will disable indexing of this folder so nobody except our workgroup with direct links can find them... Then we can read those files as binaries - here's unofficial .acb specification https://magnetiq.ca/pages/acb-spec/ |
Pantone color system may have legal issues using it in open-source. Thought here it would require some neural network to calc the formula.
The text was updated successfully, but these errors were encountered: