Re: [Gimp-user] gimp-user-list Digest, Vol 130, Issue 6
- From: Carl Johnson <pchelper4 gmail com>
- To: gimp-user-list gnome org
- Subject: Re: [Gimp-user] gimp-user-list Digest, Vol 130, Issue 6
- Date: Tue, 2 Aug 2022 19:44:52 -0500
The concept of storage in Linux is a flat file space meaning a single
sequence of 1's and 0's which may be organized any which way for a defined
type standard. I was wondering how to open up any file as a binary so I
could 'visualize' it in GIMP or Audacity to help aid analysis of things
like heuristics or segmentations. I tried storing a different file as a
bitmap and opening it but it failed, any ideas?
Thank you for any help you can provide,
Carl
On Sun, Jul 31, 2022 at 7:00 AM <gimp-user-list-request gnome org> wrote:
Send gimp-user-list mailing list submissions to
gimp-user-list gnome org
To subscribe or unsubscribe via the World Wide Web, visit
https://mail.gnome.org/mailman/listinfo/gimp-user-list
or, via email, send a message with subject or body 'help' to
gimp-user-list-request gnome org
You can reach the person managing the list at
gimp-user-list-owner gnome org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gimp-user-list digest..."
Today's Topics:
1. Re: Question about scripting (Adrian Midgley)
2. Re: Question about scripting (Ofnuts)
3. Re: Question about scripting (Ofnuts)
4. Re: Question about scripting (Kevin Cozens)
----------------------------------------------------------------------
Message: 1
Date: Sat, 30 Jul 2022 15:39:03 +0100
From: Adrian Midgley <amidgley gmail com>
To: Jean-Pierre HOARAU <jean-pierre hoarau info>
Cc: Shlomi Fish <shlomif shlomifish org>, Mailing Lists
<gimp-user-list gnome org>
Subject: Re: [Gimp-user] Question about scripting
Message-ID:
<
CAN2jWyj3F0bsEw2nWfMWa5YkTF_pOgbCo_iHrbH6XEibQSwCCw mail gmail com>
Content-Type: text/plain; charset="UTF-8"
I'd also find an example interesting.
Adrian Midgley (Retired(Mostly))
On Sat, 30 Jul 2022, 05:21 Jean-Pierre HOARAU, <jean-pierre hoarau info>
wrote:
Thank you very much for the link. It is very useful. But my problem is
not
bash but the parameters to give in command line to run gimp procedures. I
don't understand very well what I must give for args in a gimp procedure.
This is why I asked for an example with a file-jpeg-load or
file-jpeg-save
procedure. I get some error messages that I don't understand. So my
question remains, what are parameters to give to these procedures? Could
someone write me this command line? So I will have an example that I
can't
find on the net. Thank you.
Le sam. 30 juil. 2022 ? 02:25, Shlomi Fish <shlomif shlomifish org> a
?crit :
hi ,
On Fri, 29 Jul 2022 05:00:39 +0200
Jean-Pierre HOARAU <jean-pierre hoarau info> wrote:
I'm trying to write a script shell and use a procedure. I don't
understand
how to give the parameters to the script. I do not have the good
number
or
parameters. Can someone write to me the command line that I have to
enter
to use the procedures, for example, file-jpeg-load and
file-jpeg-save?
I
tried this and it doesn't work:
gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg")" -b "(gimp-quit 0)"
Please read about bash/zsh/ksh/etc. quoting/escaping:
https://mywiki.wooledge.org/BashFAQ
[also note https://www.shlomifish.org/open-source/anti/csh/ ]
Thank you in advance.
_______________________________________________
gimp-user-list mailing list
List address: gimp-user-list gnome org
List membership:
https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives: https://mail.gnome.org/archives/gimp-user-list
--
Shlomi Fish https://www.shlomifish.org/
https://www.shlomifish.org/open-source/resources/tech-tips/
If a million Shakespeares had to write together, they would write like
a
monkey.
? based on Stephen Wright, via Nadav Har?El.
Please reply to list if it's a mailing list post -
https://shlom.in/reply
.
_______________________________________________
gimp-user-list mailing list
List address: gimp-user-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives: https://mail.gnome.org/archives/gimp-user-list
------------------------------
Message: 2
Date: Sat, 30 Jul 2022 17:14:49 +0200
From: Ofnuts <ofnuts gmx com>
To: gimp-user-list gnome org
Subject: Re: [Gimp-user] Question about scripting
Message-ID: <093a93a3-1e8e-923a-503e-c7f98cd994f4 gmx com>
Content-Type: text/plain; charset=UTF-8; format=flowed
A problem you have is the multiple layers looking at your double quotes:
the shell interpreter that calls Gimp, and
the script-fu interpreter. Quotes are processed and not seen by Gimp and
script-fu.
Since you are on a Unix shell, try this:
printf "%s\n" gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE
"/home/user/ev.jpg" "/home/user/ev.jpg")" -b "(gimp-quit 0)"
This will print a line per "token" passed to the actual command:
gimp -i -b (file-jpeg-load RUN-NONINTERACTIVE /home/user/ev.jpg
/home/user/ev.jpg) -b (gimp-quit 0) As you can see, the quotes around the
file names have been removed. You have to either escape them:
printf "%s\n" gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE
\"/home/user/ev.jpg\" \"/home/user/ev.jpg\")" -b "(gim p-quit 0)" gimp
-i -b (file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg") -b (gimp-quit 0) Or use outer single quotes (but this
makes variable substitution in the shell a bit contrived:
printf "%s\n" gimp -i -b '(file-jpeg-load RUN-NONINTERACTIVE
"/home/user/ev.jpg" "/home/user/ev.jpg")' -b '(gimp-qu it 0)' gimp -i -b
(file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg") -b (gimp-quit 0)
Or, if script-fu supports it (that's what I do for pythin-fu), outer
double qoutes and single quotes for the scrpit-fu strin
printf "%s\n" gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE
'/home/user/ev.jpg' '/home/user/ev.jpg')" -b "(gimp-qu it 0)" gimp -i -b
(file-jpeg-load RUN-NONINTERACTIVE '/home/user/ev.jpg'
'/home/user/ev.jpg') -b (gimp-quit 0)
On 29/07/2022 05:00, Jean-Pierre HOARAU wrote:
I'm trying to write a script shell and use a procedure. I don't
understand
how to give the parameters to the script. I do not have the good number
or
parameters. Can someone write to me the command line that I have to enter
to use the procedures, for example, file-jpeg-load and file-jpeg-save? I
tried this and it doesn't work:
gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg")" -b "(gimp-quit 0)"
Thank you in advance.
_______________________________________________
gimp-user-list mailing list
List address:gimp-user-list gnome org
List membership:https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:https://mail.gnome.org/archives/gimp-user-list
------------------------------
Message: 3
Date: Sat, 30 Jul 2022 17:30:20 +0200
From: Ofnuts <ofnuts gmx com>
To: gimp-user-list gnome org
Subject: Re: [Gimp-user] Question about scripting
Message-ID: <18d7b1e3-7154-ab2a-07b1-907bb7267890 gmx com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Ok, so some "clever" reformatting of my answer happened, so let's try
again. If this is still garbled, here is a screenshot of what I mean:
https://imgur.com/vBKHf1g
A problem you have is the multiple layers looking at your double quotes:
the shell interpreter that calls Gimp, and
the script-fu interpreter. Quotes are processed and not seen by Gimp and
script-fu.
Since you are on a Unix shell, try this:
??? printf "%s\n" gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE
"/home/user/ev.jpg" "/home/user/ev.jpg")" -b "(gimp-quit 0)"
This will print a line per "token" passed to the actual command:
??? * gimp
??? * -i
??? * -b
??? * (file-jpeg-load RUN-NONINTERACTIVE /home/user/ev.jpg
/home/user/ev.jpg)
??? * -b
??? * (gimp-quit 0)
As you can see, the quotes around the file names have been removed. You
have to either escape them:
??? printf "%s\n" gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE
\"/home/user/ev.jpg\" \"/home/user/ev.jpg\")" -b "(gimp-quit 0)"
??? * gimp
??? * -i
??? * -b
??? * (file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg")
??? * -b
??? * (gimp-quit 0)
Or use outer single quotes (but this makes variable substitution in the
shell a bit contrived:
??? printf "%s\n" gimp -i -b '(file-jpeg-load RUN-NONINTERACTIVE
"/home/user/ev.jpg" "/home/user/ev.jpg")' -b '(gimp-quit 0)'
??? * gimp
??? * -i
??? * -b
??? * (file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg")
??? * -b
??? * (gimp-quit 0)
Or, if script-fu supports it (that's what I do for pythin-fu), outer
double qoutes and inner single quotes for the scrpit-fu strings
??? printf "%s\n" gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE
'/home/user/ev.jpg' '/home/user/ev.jpg')" -b "(gimp-quit 0)"
??? * gimp
??? * -i
?? ?* -b
?? ?* (file-jpeg-load RUN-NONINTERACTIVE '/home/user/ev.jpg'
'/home/user/ev.jpg')
??? * -b
?? ?* (gimp-quit 0)
On 29/07/2022 05:00, Jean-Pierre HOARAU wrote:
I'm trying to write a script shell and use a procedure. I don't
understand
how to give the parameters to the script. I do not have the good number
or
parameters. Can someone write to me the command line that I have to enter
to use the procedures, for example, file-jpeg-load and file-jpeg-save? I
tried this and it doesn't work:
gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg")" -b "(gimp-quit 0)"
Thank you in advance.
_______________________________________________
gimp-user-list mailing list
List address:gimp-user-list gnome org
List membership:https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:https://mail.gnome.org/archives/gimp-user-list
------------------------------
Message: 4
Date: Sat, 30 Jul 2022 12:06:25 -0400
From: Kevin Cozens <kevin ve3syb ca>
To: gimp-user <gimp-user-list gnome org>
Subject: Re: [Gimp-user] Question about scripting
Message-ID: <ca74c696-306b-616f-f0a8-d62b98d72f16 ve3syb ca>
Content-Type: text/plain; charset=UTF-8; format=flowed
On 2022-07-28 23:00, Jean-Pierre HOARAU wrote:
I tried this and it doesn't work:
gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE "/home/user/ev.jpg"
"/home/user/ev.jpg")" -b "(gimp-quit 0)"
On 2022-07-30 11:14, Ofnuts via gimp-user-list wrote:
> A problem you have is the multiple layers looking at your double quotes:
Ofnuts is correct that the problem is with the nested double quotes. The
inner ones that are before and after the file name need to be escaped.
gimp -i -b "(file-jpeg-load RUN-NONINTERACTIVE \"/home/user/ev.jpg\"
\"/home/user/ev.jpg\")" -b "(gimp-quit 0)"
--
Cheers!
Kevin.
http://www.ve3syb.ca/ | "Nerds make the shiny things that
https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
| that's why we're powerful"
Owner of Elecraft K2 #2172 |
#include <disclaimer/favourite> | --Chris Hardwick
------------------------------
Subject: Digest Footer
_______________________________________________
gimp-user-list mailing list
gimp-user-list gnome org
https://mail.gnome.org/mailman/listinfo/gimp-user-list
------------------------------
End of gimp-user-list Digest, Vol 130, Issue 6
**********************************************
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]