This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Expand export features for Krita commandline or macros

Tags: None
(comma "," separated)
User avatar
terrycloth
Registered Member
Posts
30
Karma
0
OS
For my web comic, I've designed the site to have responsive images, so that each user's web browser can select the image most appropriate for their display resolution.

This means that for every image, I need to export not just different formats but also different sizes. For longer stories, this can be a little tedious, and I sometimes make mistakes by exporting the wrong size for the HD version, and so on. It would be so much easier if I could automate this. We should expand the export features for the Krita commandline, or add image resizing and exports to the Krita macros system.

What do you think?
slangkamp
KDE Developer
Posts
607
Karma
4
Currently the best way to do this is to use the Krita commandline to export the image at full resoultion and then use imagemagick to resize it.

The macro can't save and scale yet at this point.
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS
Android Number 5 wrote:We should expand

:D

If you want to implement it you should probably first learn to build Krita. After that you can actually modify the code and test. Once you're done, you can do a 'git diff >> patch.diff' and submit it to reviewboard.kde.org under the project calligra!

Okay, joking about the wording aside, it's something we've definitely considered, but the problem is just that there's too little time right now. It may get in with python scripting, but that's slow going right now. Imagemagick, like slangkamp suggested, is your best bet right now.
User avatar
Mike A.
KDE Developer
Posts
41
Karma
0
OS
I agree, the problem here is that Imagemagick is so damn good at doing this it would be hard to replicate. If you're going to write a command line script to automate it anyway, what's the difference between writing a script that calls Krita on the back end and the script that calls imagemagick on the back end?
User avatar
terrycloth
Registered Member
Posts
30
Karma
0
OS
Good points all around. When doing similar work in GIMP, I actually dove into their documentation and hacked together a Scheme script... ImageMagick will probably be easier.

And @TheraHedwig I actually am interested in contributing to Krita, but I'd like to start with something simple. But if ImageMagick is already an easy solution, maybe I'll try to think of something else to do.

Last edited by terrycloth on Mon Aug 17, 2015 7:11 pm, edited 1 time in total.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Expanding the commandline options actually would a be a pretty simple way to get started :-)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]