Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2720

Re: Putting lines from a file into an array

From JohnF <john@please.see.sig.for.email.com>
Newsgroups comp.lang.postscript
Subject Re: Putting lines from a file into an array
Date 2016-08-02 03:39 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <nnp4lg$5e1$1@reader2.panix.com> (permalink)
References <87624kp6hc.fsf@Compaq.site.inet> <bb7c7717-e527-41ca-b264-ef2f9d3cb23e@googlegroups.com>

Show all headers | View raw


luser droog <luser.droog@gmail.com> wrote:
> I have a very short bash script here which uses gs and
> imagemagick which creates a "meme", an image superposed
> with specified text, which was the larger goal of the
> file-reading sub-task.
> It takes arguments from the command-line, but the technique
> should be readily adaptable to other configurations.
> http://codegolf.stackexchange.com/questions/71375/dank-meme-generator/71388#71388

Thanks for the useful little script.
Your superman example in the stackexchange question looks fine.
But when I tried it on my own image
  http://www.forkosh.com/images/duckrabbit.jpg
as
  ./meme.sh duckrabbit.jpg "Duck" "Rabbit"
the originally-centered duckrabbit.jpg image got shrunk and put
in the lower-left corner of a much larger duckrabbit.jpg.png image,
with text centered top and bottom, but lots of unnecessary
(and unwanted) whitespace.
   I gave it ~five minutes, but couldn't make heads or tails
(or should I say ducks or rabbits) out of what's going on.
You have any quick understanding/solution? (Don't spend more
than five mins -- just not that important for me.) Thanks.

> Earlier revisions are less "golfed" and easier to read:
> http://codegolf.stackexchange.com/revisions/71388/1

-- 
John Forkosh  ( mailto:  j@f.com  where j=john and f=forkosh )

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Putting lines from a file into an array Cecil Westerhof <Cecil@decebal.nl> - 2012-12-02 21:02 +0100
  Re: Putting lines from a file into an array Chris <cjl@spamcop.net> - 2012-12-02 20:47 +0000
    Re: Putting lines from a file into an array Cecil Westerhof <Cecil@decebal.nl> - 2012-12-03 00:52 +0100
      Re: Putting lines from a file into an array Don Lancaster <don@tinaja.com> - 2012-12-05 11:58 -0700
        Re: Putting lines from a file into an array "luser.droog" <luser.droog@gmail.com> - 2012-12-05 23:19 -0600
    Re: Putting lines from a file into an array John Deubert <john@acumentraining.com> - 2012-12-03 13:20 -0800
      Re: Putting lines from a file into an array "luser.droog" <luser.droog@gmail.com> - 2012-12-04 00:58 -0600
      Re: Putting lines from a file into an array Chris <cjl@spamcop.net> - 2012-12-04 09:09 +0000
        Re: Putting lines from a file into an array John Deubert <john@acumentraining.com> - 2012-12-04 07:03 -0800
          Re: Putting lines from a file into an array Chris <cjl@spamcop.net> - 2012-12-04 17:46 +0000
        Re: Putting lines from a file into an array Cecil Westerhof <Cecil@decebal.nl> - 2012-12-04 17:17 +0100
  Re: Putting lines from a file into an array "luser.droog" <luser.droog@gmail.com> - 2012-12-02 15:31 -0600
    Re: Putting lines from a file into an array Cecil Westerhof <Cecil@decebal.nl> - 2012-12-03 02:19 +0100
      Re: Putting lines from a file into an array "luser.droog" <luser.droog@gmail.com> - 2012-12-02 23:28 -0600
        Re: Putting lines from a file into an array Cecil Westerhof <Cecil@decebal.nl> - 2012-12-03 10:01 +0100
  Re: Putting lines from a file into an array luser droog <luser.droog@gmail.com> - 2016-08-01 13:25 -0700
    Re: Putting lines from a file into an array JohnF <john@please.see.sig.for.email.com> - 2016-08-02 03:39 +0000
      Re: Putting lines from a file into an array luser droog <luser.droog@gmail.com> - 2016-08-02 21:58 -0700
        Re: Putting lines from a file into an array Tonton Th <tTh@nowhere.invalid> - 2016-08-03 05:10 +0000
        Re: Putting lines from a file into an array luser droog <luser.droog@gmail.com> - 2016-08-02 22:20 -0700
          Re: Putting lines from a file into an array luser droog <luser.droog@gmail.com> - 2016-08-02 22:35 -0700
            Re: Putting lines from a file into an array JohnF <john@please.see.sig.for.email.com> - 2016-08-03 06:21 +0000
            Re: Putting lines from a file into an array JohnF <john@please.see.sig.for.email.com> - 2016-08-03 06:32 +0000
              Re: Putting lines from a file into an array luser droog <luser.droog@gmail.com> - 2016-08-22 22:31 -0700

csiph-web