olivierberten / swatchbooker Goto Github PK
View Code? Open in Web Editor NEWSwatch book viewer/convertor/editor
Home Page: http://www.selapa.net/swatchbooker/
Swatch book viewer/convertor/editor
Home Page: http://www.selapa.net/swatchbooker/
Please, add support not only read but also write ACO palette file!
Here is AzPainter (opensource Photoshop-like image editor), that can read&write ACO files
Note: This isn't really an issue for the dev but more for the community.
At this point Swatchbooker is offered for download for OSX via Homebrew.
https://github.com/Homebrew/homebrew/blob/master/Library/Formula/swatchbooker.rb
Here is it's current state:
Per announcement: https://legacy.python.org/dev/peps/pep-0373/, python 2 will reach end of life next year. It will be nice swatchbooker convert all python 2 to python 3.
Found this: https://github.com/termie/lp2gh/blob/master/docs/moving_issues.rst
Not sure it works...
Current implementation is slow because each color translation causes creating/loading new color profiles and color transforms. Especially this is significant for CMYK colors. Profile and color transform handles could be cached and this will improve application performance.
..that includes the fix from #1
Hi there, do you believe it is possible for me to build a windows installer for this app?
Thank you!
Hello @olivierberten @prokoudine
Here is the metainfo needed for Gnome Software used on Ubuntu, Fedora and other distributions following the appstream guideline
Simply extract the zip to the root directory and you edit the file to update the information. You can automate the installation to /usr/share/metainfo for future proof installation in any distribution
The website references the URL https://riverbankcomputing.com/static/Downloads/PyQt4/PyQt-Py2.5-gpl-4.7.7-1.exe, which returns a 404 error.
Swatchbooker lacks a description and website on it's github page
From the Homebrew Swatchbooker formula: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/swatchbooker.rb#L31-L42
Would it be possible to add this to the next minor upgrade version ?
diff --git a/src/swatchbook/color.py b/src/swatchbook/color.py
index 48ae503..f3511a2 100644
--- a/src/swatchbook/color.py
+++ b/src/swatchbook/color.py
@@ -28,7 +28,7 @@ def dirpath(name):
if not name:
return name
elif os.path.islink(name):
- return os.path.dirname(os.path.abspath(os.path._resolve_link(name)))
+ return os.path.dirname(os.path.abspath(os.path.realpath(name)))
else:
return os.path.dirname(name)
Background:
I pinged @olivierberten (https://answers.launchpad.net/swatchbooker/+question/271814)
I'm part of the Scribus community (https://github.com/scribusproject/). Recently it has come to my attention that Swatchbooker has immense potential but it seems that development on it has been dormant. What can be done to help move things in the right direction?
Olivier responded:
Currently, apart for time, the main stopper for me is the lack of Python bindings for LittleCMS2, which makes it hard to make work in any recent environment... I tried to do something simple with ctypes but it crashes in threads, which I use in SwatchBooker. And I don't have the expertise nor the time to dig deeper into it...
By the way, I intend to go on with the development on GitHub instead of Launchpad... https://github.com/olivierberten/SwatchBooker
So I sent an email to the lcms ML: http://sourceforge.net/p/lcms/mailman/message/34497820/
What is the status of Python bindings for lcms2?
Is anyone working on this?
And a response comes back:
It's not exactly the same, and is probably only an option on Linux,
but libcolord has an API that wraps the important parts of lcms2 and
provides a nice GObjectIntrospection interface that can be easily
consumed in Python.
https://github.com/hughsie/colord/blob/master/examples/cd-get-devices.py
is an example talking to the daemon, but if this is interesting to you
I can do an example that does a colorspace conversion.Richard.
Attempting to start swatchbooker using 20170131 snapshot resulted below:
$ swatchbooker
Traceback (most recent call last):
File "/usr/lib/swatchbooker/swatchbooker.pyw", line 28, in
from sbcommon import *
File "/usr/lib/swatchbooker/sbcommon.py", line 28, in
from swatchbook import *
File "/usr/lib/python2.7/site-packages/swatchbook/init.py", line 27, in
from color import *
File "/usr/lib/python2.7/site-packages/swatchbook/color.py", line 23, in
from lcms2 import *
File "/usr/lib/python2.7/site-packages/swatchbook/lcms2.py", line 601, in
_libs["lcms2"] = load_library("lcms2")
File "/usr/lib/python2.7/site-packages/swatchbook/lcms2.py", line 350, in load_library
return self.load(path)
File "/usr/lib/python2.7/site-packages/swatchbook/lcms2.py", line 366, in load
raise ImportError(e)
ImportError: /lib/liblcms2.so.2.0.8: wrong ELF class: ELFCLASS32
On Fedora system, here is the listed dependencies:
$ dnf repoquery --requires --resolve swatchbooker
Last metadata expiration check: 2:55:12 ago on Thu Apr 20 17:31:59 2017.
bash-0:4.3.43-4.fc25.x86_64
coreutils-0:8.25-16.fc25.x86_64
coreutils-single-0:8.25-16.fc25.x86_64
python-0:2.7.13-1.fc25.i686
python-0:2.7.13-1.fc25.x86_64
python-libs-0:2.7.13-1.fc25.i686
python-libs-0:2.7.13-1.fc25.x86_64
http://www.selapa.net/swatchbooker/ makes it look like Swatchbooker is an abandoned project.
When clicking on "Download" and it goes to Launchpad (related issue: #2) and there's nothing else to indicate that there are recent releases or that there has been any active development since 2010.
Please update the links on the website and also make it look like there's active development. (If you had something like "New release: $RELEASE_VERSION, $RELEASE_DATE" and a link, it'd do wonders. But then, of course, it'd need to be manually updated. At least changing the links would help.)
Hello.
I have downloaded the SwatchBooker-0.7.3.setup.exe installer but it seems that your software can't work without installing a few libraries first.
For using it on Windows, you'll need to install Python 2.5 (2.6 won't work because there aren't any lcms bindings compiled against Python 2.6), PyQt4 and PIL. Then download LittleCMS. From that package, from bin copy lcms.dll into C:\Windows\System32 and from python copy lcms.py and _lcms.pyd to C:\Python25\Lib\site-packages.
Could you create an installer that contains these dependencies ?
I think the end-user (like me) just wants to install the Setup.exe file and launch the software right after that.
Or even better... create a portable archive file featuring all the libraries and the .exe launcher file.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.