foone , Englisch
@foone@digipres.club avatar

you know what'd be a cool feature for an image editor?
"export last action as code"

where it looks at the last thing in the undo/redo buffer, and saves it out as a program (in C/C++/whateverscripting) that uses an ImageEditorLibrary to do the same thing

foone OP ,
@foone@digipres.club avatar

so like you go in and adjust the curves and then hit export and it gives you like:

import editorlib
img = editorlib.load('foo.png')
img.adjustCurves(input=58,output=138,curve_type=editorlib.curves.SMOOTH)
img.save('out.png')

phil ,
@phil@wrestling.social avatar

@foone so.. just do this. In Blender or whatever.

eddedmondson ,
@eddedmondson@mastodonapp.uk avatar

@foone Problem might be that comparing two states without recording exactly how you got there might be ambiguous. Is 1 -> 2 a +1 or a x2 operation?

simon_bitdiddle ,
@simon_bitdiddle@mastodon.sandwich.net avatar

@foone

Ostensibly that's what Postscript should be.

mhoye ,
@mhoye@mastodon.social avatar

@foone "turn this thing I just did into one line of imagemagick I can run in the shell" would be a beautiful thing.

dannotdaniel ,
@dannotdaniel@mastodon.social avatar

@foone @blender 👀👀👀

BoydStephenSmithJr ,
@BoydStephenSmithJr@hachyderm.io avatar

@foone For some reason, I thought the GNU image manipulator could already do this. Maybe it was just the UI focus on playing scripts last time I used it. (I use for what little image editing I do for a while now.)

b4ux1t3 ,
@b4ux1t3@hachyderm.io avatar

@foone yes. Just.... Yes.

Like, I've literally done this manually before, by going through the source code for both gimp and krita to figure out how they did specific things that I tried.

It takes hours, because of course it does!

jkerhin ,
@jkerhin@fosstodon.org avatar

@foone while calling it an image editor is quite a stretch, MATLAB totally does this. Be careful what you wish for though, the code it autogenerates is... not what a human would write, to put it mildly.

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine