Release of G'MIC 2.5

Hmm, not so simple. That depends on shell or not.
Here is the output of “env” under bash. I have deleted some personal things MANPATH and PATH
Under Gimp in Desktop I don’t know how to visualize the output!

TERM_PROGRAM=Apple_Terminal

SHELL=/bin/bash

TERM=xterm-color

CLICOLOR=true

HISTSIZE=5000

TMPDIR=/var/folders/g3/ft0231pd0fggnh0czwqd7znc0000gn/T/

EnvAgent_vars=CVS_RSH JAVA_HOME MAGICK_CONFIGURE_PATH MANPATH SSH_AUTH_SOCK

MAGICK_CONFIGURE_PATH=/Users/karo/.magick

Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.QrIGt44tyt/Render

BF_JAR_DIR=/Applications/ImageJ/plugins

TERM_PROGRAM_VERSION=421.1.1

TERM_SESSION_ID=72C34177-6D4D-4B55-BEEB-42FCCBA33D43

GMIC_PINK_NO_RM=0

HISTFILESIZE=-1

USER=karo

GMIC_PINK_VERBOSE=0

SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.6onTc8yMzf/Listeners

LSCOLORS=ExGxFxdxCxDxDxBxBxExEx

GMIC_SYSTEM_PATH=/Users/karo/.cache/gmic

MAGIC=/usr/share/file/magic:/Users/karo/.magic

PWD=/Users/karo

JAVA_HOME=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home

DBUS_LAUNCHD_SESSION_BUS_SOCKET=/private/tmp/com.apple.launchd.26geRcF7Qj/unix_domain_listener

EDITOR=/usr/local/bin/mate -w

PINK=/Users/karo/sw/Pink

VIM_APP_DIR=/Applications/MiscEXE/Editors

LANG=de_DE.UTF-8

XPC_FLAGS=0x0

PS1=\W $

HISTCONTROL=ignoredups:erasedups

XPC_SERVICE_NAME=0

SHLVL=1

HOME=/Users/karo

SHELL_SESSION_HISTORY=0

GNUTERM=aqua

LOGNAME=karo

CVS_RSH=ssh

LC_CTYPE=en_US.UTF-8

DISPLAY=/private/tmp/com.apple.launchd.ZLdPg8km1I/org.macosforge.xquartz:0

HISTFILE=/Users/karo/.bash_history

_=/opt/local/libexec/gnubin/env

__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x3

OK Thanks Karsten, I think I’ll try something this afternoon.

@Hebustetram, I’ve made a small modification in the filter code.
Could you try to refresh the filters (using the Update filters button) , and tell us if that fixes your problem ?
Thanks !

EDIT : It seems the website has a problem… :frowning: I’ve not been able to upload the filter update. Will try again in a few moments.

Very good David! Just tried x_warp on sequences of images. Works very well with that global variable.
Thank you!

ex: gmic sp ? sp ? +x_warp… , +x_warp… , d

I’m currently working on it, and make the “final” cleaning before having this as a new filter for the plug-in :slight_smile:

Good, good, that will be a nice thing for the animators of drawings!

Improvements in x_morph are really positiv too. What about the trajectories in the in-between image with start-inbetween-end-point by any key?

Ok, with the last changes in 2.5.7 seemingly no clutter of gmic_cluts.gmz and cli as well as (my) Gimp use the same location.

1 Like
1 Like

Believe it or not, but it doesn’t work that bad! :stuck_out_tongue:

davidstein

4 Likes

It would be good the option without fade for drawings

2019-04-20-081237_530x553_scrot

This is actually something we may investigate with @Jehan in the future.

Changelog for upcoming version 2.6.0 (Work in Progress!)

Improvements:

  • Commands for flow control that takes a condition as an argument (if, elif, while, for) now try to automatically evaluate its argument when a boolean is not directly specified. This works also similarly for repeat. As a result, this basically remove a lot of braces in the code, e.g. the code below is now valid:
foo:
  if $!<3  # Instead of "if {$!<3}"
    repeat 2*$!+3,var echo $var done # Instead of "repeat {2*$!+3}"
  fi
1 Like

Nice, no more stoppage due to forgetting the curly braces.

That’s actually the opposite : a wrong argument to if will throw an error, which makes the code easier to debug :slight_smile:

It is almost the same thing except that it would throw an error only if the argument is incorrect, not because I forgot to include the curly braces, so it is a time saver.

Hmm with gmic 2.5.8 this line
if {$_version>=250} if /Users/karo/sw/gmic_bm/BAM_250.gmic m /Users/karo/sw/gmic_bm/BAM_250.gmic fi fi
throws an error

Seemingly this
01 Bildschirmfoto 2019-04-21 um 10.41.01
is not valid anymore!

@KaRo, yes that’s another difference.
To test the existence of a file or a folder, use

if isfile(['path_to_the_file/file.txt'])
if isdir(['path_to_the_file/file.txt'])

David today is Easter Sunday! Have a nice day!

By the way “file_rand” crashes too, same reason!

Thanks Karsten, happy easter for you too.
I’ve just fixed file_rand. These changes are quite important for the interpreter, so I expect a few bugs appearing in the next days :slight_smile: