AminetAminet
Search:
84476 packages online
About
Recent
Browse
Search
Upload
Setup
Services

gfx/conv/JP2A_AOS4.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Converts JPEG images to Ascii Art
Author:Christian Stigen Larsen, AmigaOS 4.0 compile by Spot / Up Rough
Uploader:spot triad se (Spot / Up Rough)
Type:gfx/conv
Version:0.9.22
Requires:AmigaOS 4.0 and a JPEG image.
Architecture:ppc-amigaos >= 4.0.0
Date:2006-08-11
Download:http://aminet.net/gfx/conv/JP2A_AOS4.lha - View contents
Readme:http://aminet.net/gfx/conv/JP2A_AOS4.readme
Downloads:517

JP2A AmigaOS 4.0 Read Me
------------------------

jp2a is a small utility that converts JPG images to ASCII. It's written in C
and released under the GPL.

Important Note about the AmigaOS 4.0 port, it was not compiled with libcurl
support, so you can't convert images directly from the net. I'll implement
that in the future if LibCurl gets ported to clib2.



Example Usage:

jp2a --size=60x60 jp2a.jpg --output=jp2a.txt

gives you this;

MMMMWNWMMMMMMMMMMMMMMMMMMMMMMMMMMWNNWMMMMMMMMMMMMMMMMMMMMMMM
MMMMWXNMMMMMMMMMMMMMMMMMMMMMMMMMMNXKNMMMMMMMMMMMMMMMMMMMMMMM
MMMMOclXMMMMMMMMMMMMMMMMMMMMMMMN0oc:lkXMMMMMMMMMMMMMMMMMMMMM
MMMN;  dMMMMMMMMMMMMMMMMMMMMMWOc'    .:KMMMMMMMMMMMMMMMMMMMM
MMMK.  :MMMMMMMMMMMMMMMMMMMMMk.        cWMMMMMMMMMMMMMMMMMMM
MMM0.  :MMMMMMMMMMMMMMMMMMMMW;         .OMMMMMMMMMMMMMMMMMMM
MMMN,  oMMMMMMMMMMMMMMMMMMMMN'          cNMMMMMMMMMMMMMMMMMM
MMMM:  xMMMMMMMMMMMMMMMMMMMMN'          ,KMMMMMMMMMMMMMMMMMM
MMMMk:lKMMMMMMMMMMMMMMMMMMMMN'   ..     .OMMMMMMMMMMMMMMMMMM
MMMXOkOKWMMN0000XW0xxOXMMMMMN' ;okx;    .dMMMMMWXkxxxOXWMMMM
MMWd''':KMMk''''dd'...;OMMMMN:oKMMM0.    dMMMW0o;.....;kWMMM
MMWc   .0MMo    ..     '0MMMNONMMMMW;    dMMMk'        .OWMM
MMWc   .0MMo            ;KMMWWMMMMMM:   .xMMW;          ,0MM
MMWc   .KMMo            .xMMMMMMMMMM:   .xMMN'          .xMM
MMWc   .0MMo             lWMMMMMMMMM:   .OMMN'  .','     dMM
MMWc   .0MMo     .c;     .KMMMMMMMMW,   cNMMN' ,x0K0,    cWM
MMWc   .0MMo    'ONX:     kMMMMMMMMK.   xMMMN:lKMMMMo    :NM
MMWc   .0MMo    lWMMk     xMMMMMMMWd   'XMMMWONMMMWXc    ;NM
MMWc   .0MMo    lMMMK.    oMMMMMMMK,   lMMMMMWMMNkl;.    ;NM
MMWc   .0MMo    lMMMX,    oMMMMMMMk.   dMMMMMMMMK:.      ;NM
MMWc   .0MMo    lMMMN,    oMMMMMMNc   .OMMMMMMW0c.       ;NM
MMWc   .0MMo    lMMMN;    oMMMMMMO.   :NMMMMMXl'   ..    ;NM
MMWc   .0MMo    lMMMK'    dMMMMMW:   ,0MMMMMMd    ,dl    ;NM
MMWc   .0MMo    lMMMO     xMMMMWk.  .xNNNNWMN,   ;KWd    ;NM
MMWc   .0MMo    oMMMx     kMMMMWl   .OXKKKNMK.   dMMd    ;NM
MMWc   .0MMo    ;XMWl     OMMMM0'   .;::::kMO.   xMMd    :NM
MMWc   .0MMo     ;dl.    'KMMMK;          :Mx    xMMo    ,0N
MMWc   .0MMo             lWMMNc           :Mk.   ;xd.     ,k
MMWc   .0MMo            ;KMMMk            :MK.    ..       d
MMWc   .0MMo           '0MMMX,            :MW;      .      x
MMWc   .0MMo           cWMMMO.            :MMl      ,.    .k
MMNc   .0MMo    ,,   .,kMMMMO,''''''''''''oMMO'.  .,x:.  .cX
MMN:   .0MMo    lKdddxKWMMMMX0000000000000XMMW0xddxKWKxddkNM
MMK,   .KMMo    lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MNl    .XMMo    lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
Mx.    ,WMMo    lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
Ml     ;MMMo    lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
Md     cMMMo    lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MO     xMMMo    lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MX,   :XMMMo    lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MWo..oKMMMMd....oMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMKxOWMMMMMKxxxxKMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM


jp2a --size=60x60 --invert jp2a.jpg --output=test.txt

gives you this;

                                                            
     .                            ..                        
    'ol.                        .codl,.                     
    xMW:                      'oONMMWKd.                    
   .KMMd                     ,0WMMMMMMWo                    
   .KMMd                     xMMMMMMMMMX'                   
    kMWc                     OMMMMMMMMMWo                   
    dMN;                     OMMMMMMMMMMk.                  
    ,dl.                     OMMNKXWMMMM0'                  
   .','.    ..... .;;'.      ONxc,;xWMMMX:      .,;;;'.     
   :OOOd.  ,OOOO::OXX0x'     dc.   .0MMMN:    .cxKXXX0x,    
   oMMMK.  cMMMMKXMMMMMO.    '      xMMMN:   ,ONMMMMMMM0'   
   oMMMK.  cMMMMMMMMMMMWx.          dMMMX;   xMMMMMMMMMMk.  
   oMMMK.  cMMMMMMMMMMMMX;          dMMMX;   OMMMMMMMMMMX;  
   oMMMK.  cMMMMMMMMMMMMNl          dMMM0'   OMMXOkONMMMN:  
   oMMMK.  cMMMMW0oxNMMMM0.         kMMMo    ONk;...kMMMMo  
   oMMMK.  cMMMMO' .dMMMMN,        .0MMN;    dl.    cMMMMd  
   oMMMK.  cMMMWl   ,NMMMM;        :NMMO.    '     .oMMMMx  
   oMMMK.  cMMMWl   .0MMMMc       .kMMMl         ,lxXMMMMx  
   oMMMK.  cMMMWl   .kMMMMc       ,KMMM:        .dXMMMMMMx  
   oMMMK.  cMMMWl    kMMMMc       oNMMX'       .oKWMMMMMMx  
   oMMMK.  cMMMWl    xMMMMc      'XMMWd      .lOWMMXKMMMMx  
   oMMMK.  cMMMWl   .OMMMM:      dMMWk.      :NMMNk:lMMMMx  
   oMMMK.  cMMMWl   'NMMMW;     ,XMMX;       kMMWx. :MMMMx  
   oMMMK.  cMMMWc   ;WMMMW,     lWMM0'....  .0MMW:  :MMMMx  
   oMMMK.  cMMMMx.  lMMMMN'    .OMMMXxdddd, 'KMMN;  :MMMMd  
   oMMMK.  cMMMMNx:lKMMMMO.   .xWMMMMMMMMMd ;NMMN;  cMMMMk. 
   oMMMK.  cMMMMMWNWMMMMNl    oNMMMMMMMMMMd ,XMMWx;:0MMMMNk,
   oMMMK.  cMMMMMMMMMMMWx.   ,NMMMMMMMMMMMd .0MMMWXXMMMMMMN:
   oMMMK.  cMMMMWWMMMMMO.   .kMMMMMMMMMMMMd  xMMMMMMXNMMMMN;
   oMMMK.  cMMMMNWMMMMMo    'KMMMMMMMMMMMMd  lMMMMMMkKMMMMX,
   oMMMK.  cMMMWkkNNNXk,    'kOOOOOOOOOOOOc  'OXNNXk;dXNNKo.
   dMMMK.  cMMMWl.:::;.     ...............   .;::;. .;::,  
  .kMMMK.  cMMMWl                                           
  lNMMM0.  cMMMWl                                           
 ;XMMMMk   cMMMWl                                           
 lMMMMMx   cMMMWl                                           
 :MMMMMo   cMMMWl                                           
 'NMMMN;   cMMMWl                                           
 .kMMNd.   cMMMWl                                           
  cX0c.    :XXXXc                                           
  .;'      .;;;;.                                           


COLORED IMAGES

You can also make coloured HTML images. They use CSS however, so currently we
can't display them
correctly with Amiga Browsers.

--html
Make ASCII output in strict XHTML 1.0, suitable for viewing with web browsers.
This is useful with big output dimensions, and you want to check the result with
a browser with small font.

--html-fill
When used with --html and --color, then color each output character's background
color.  For instance,
if you want to use fill-output on a light background, do

jp2a --size=60x60 --color --html --html-fill --background=light somefile.jpg
--output=dark.html

To do the same on a light background:

jp2a --size=60x60 --color --html --html-fill --background=dark somefile.jpg
--output=light.html

The default is to have fill disabled.

--html-fontsize=N
Set fontsize when using --html output.  Default is 4.

--output=...
Write ASCII output to given filename.  To explicitly specify standard output,
use --output=-.

-i --invert
Invert output image.  If you view a picture with white background, but you are
using
a display with light characters on a dark background, you shoudl invert the
image.

--red= ...
--green= ...
--blue= ...
When converting from RGB to grayscale, use the given weights to calculate
luminance.
These three floating point values must add up to exactly 1.0.
The default is red=0.2989, green=0.5866 and blue=0.1145.


SIZE

--size= WIDTHxHEIGHT
Set output dimension.


FINAL WORDS

For a deeper understanding of how this app works look in the source/man/ drawer
for a indepth usage guide
that unfortunately is in the unix man format.
You could also get some info from the official homepage -->
http://jp2a.sourceforge.net/

Have fun! / Spot





Contents of gfx/conv/JP2A_AOS4.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  138     171  80.7% -lh5- e6f9 Jul 29 12:32 jp2a-0.9.22/Docs/AUTHORS
[generic]                 2419    5533  43.7% -lh5- c451 Jul 29 11:10 jp2a-0.9.22/Docs/ChangeLog
[generic]                 7021   18002  39.0% -lh5- 8af8 Jul 12 12:09 jp2a-0.9.22/Docs/COPYING
[generic]                  248     321  77.3% -lh5- eee5 Jul 27 14:40 jp2a-0.9.22/Docs/INSTALL
[generic]                 3207    9157  35.0% -lh5- bb02 Jul 18 15:47 jp2a-0.9.22/Docs/LICENSES
[generic]                   14      14 100.0% -lh0- 2444 Jul 12 12:09 jp2a-0.9.22/Docs/NEWS
[generic]                 1724    3663  47.1% -lh5- 3e37 Jul 26 11:16 jp2a-0.9.22/Docs/README
[generic]                88932  190436  46.7% -lh5- 0ceb Aug 25 18:03 jp2a-0.9.22/jp2a
[generic]                 2370    7416  32.0% -lh5- 5b2e Aug 25 19:03 jp2a-0.9.22/ReadMe.Amiga
[generic]                10538   31120  33.9% -lh5- e5a9 Jul 27 14:57 jp2a-0.9.22/Source/aclocal.m4
[generic]                47750  207685  23.0% -lh5- cc74 Jul 28 11:27 jp2a-0.9.22/Source/configure
[generic]                 1716    4259  40.3% -lh5- 6ad8 Jul 27 14:57 jp2a-0.9.22/Source/configure.ac
[generic]                 5434   15936  34.1% -lh5- 06ee Jul 26 13:28 jp2a-0.9.22/Source/depcomp
[generic]                 3750    9233  40.6% -lh5- 46a4 Jul 26 13:28 jp2a-0.9.22/Source/install-sh
[generic]                 3711   11014  33.7% -lh5- 0b4d Jul 26 13:28 jp2a-0.9.22/Source/missing
[generic]                   23      23 100.0% -lh0- 8d53 Aug 25 16:57 jp2a-0.9.22/Source/stamp-h1
[generic]                  931    3417  27.2% -lh5- e884 Aug 25 16:57 jp2a-0.9.22/Source/config.h
[generic]                  856    3148  27.2% -lh5- 268a Jul 28 11:27 jp2a-0.9.22/Source/config.h.in
[generic]                 6312   38094  16.6% -lh5- c40c Aug 25 16:57 jp2a-0.9.22/Source/config.log
[generic]                10762   37550  28.7% -lh5- 1706 Aug 25 16:57 jp2a-0.9.22/Source/config.status
[generic]                  455     859  53.0% -lh5- c7e0 Jul 28 12:28 jp2a-0.9.22/Source/include/jp2a.h
[generic]                  436     905  48.2% -lh5- af4c Jul 28 13:29 jp2a-0.9.22/Source/include/options.h
[generic]                 6118   20589  29.7% -lh5- bbf2 Aug 25 16:57 jp2a-0.9.22/Source/Makefile
[generic]                  346     628  55.1% -lh5- 582f Jul 26 13:37 jp2a-0.9.22/Source/Makefile.am
[generic]                 6061   20550  29.5% -lh5- 54f0 Jul 28 11:26 jp2a-0.9.22/Source/Makefile.in
[generic]                 2720    6280  43.3% -lh5- c791 Jul 29 10:53 jp2a-0.9.22/Source/man/jp2a.1
[generic]                  264    1091  24.2% -lh5- c79b Aug 25 16:58 jp2a-0.9.22/Source/src/.deps/image.Po
[generic]                  221     867  25.5% -lh5- e384 Aug 25 16:57 jp2a-0.9.22/Source/src/.deps/options.Po
[generic]               113579  250181  45.4% -lh5- 0467 Aug 25 16:58 jp2a-0.9.22/Source/src/jp2a
[generic]                   40      48  83.3% -lh5- e833 Aug 25 16:57 jp2a-0.9.22/Source/src/.deps/curl.Po
[generic]                  193     738  26.2% -lh5- 94e2 Aug 25 16:57 jp2a-0.9.22/Source/src/.deps/html.Po
[generic]                  286    1204  23.8% -lh5- ec73 Aug 25 16:57 jp2a-0.9.22/Source/src/.deps/jp2a.Po
[generic]                  199     776  25.6% -lh5- 6554 Aug 25 16:57 jp2a-0.9.22/Source/src/.deps/term.Po
[generic]                 1162    2745  42.3% -lh5- 1f8b Jul 17 10:47 jp2a-0.9.22/Source/src/curl.c
[generic]                  945    2075  45.5% -lh5- 7c73 Jul 29 13:17 jp2a-0.9.22/Source/src/html.c
[generic]                 3656   11429  32.0% -lh5- f282 Jul 29 12:30 jp2a-0.9.22/Source/src/image.c
[generic]                  912    2022  45.1% -lh5- 0933 Jul 27 13:35 jp2a-0.9.22/Source/src/jp2a.c
[generic]                 3917   12191  32.1% -lh5- 1586 Aug 25 16:57 jp2a-0.9.22/Source/src/Makefile
[generic]                  137     156  87.8% -lh5- dd9b Jul 19 10:10 jp2a-0.9.22/Source/src/Makefile.am
[generic]                 3891   12695  30.6% -lh5- bfb9 Jul 28 11:26 jp2a-0.9.22/Source/src/Makefile.in
[generic]                 3280    9583  34.2% -lh5- fd5f Jul 29 10:51 jp2a-0.9.22/Source/src/options.c
[generic]                 1087    2223  48.9% -lh5- 1964 Jul 26 09:44 jp2a-0.9.22/Source/src/term.c
[generic]                  136     330  41.2% -lh5- fc11 Jul 19 15:21 jp2a-0.9.22/tests/10h.txt
[generic]                  519    3616  14.4% -lh5- 23ef Jul 19 15:21 jp2a-0.9.22/tests/110x30-i-b.txt
[generic]                  893    7889  11.3% -lh5- 956f Jul 26 12:19 jp2a-0.9.22/tests/160x49.txt
[generic]                    2       2 100.0% -lh0- f79b Jul 19 15:21 jp2a-0.9.22/tests/1x1-inv.txt
[generic]                  393    4212   9.3% -lh5- d5c8 Jul 26 10:04 jp2a-0.9.22/tests/2xnormal-b.txt
[generic]                  367    1640  22.4% -lh5- adb7 Jul 19 15:21 jp2a-0.9.22/tests/40x40.txt
[generic]                 1172    6674  17.6% -lh5- 9d2a Jul 29 11:04 jp2a-0.9.22/tests/dalsnuten-256-light.html
[generic]                 1002    6671  15.0% -lh5- bfe3 Jul 29 11:02 jp2a-0.9.22/tests/dalsnuten-256.html
[generic]                31196   31196 100.0% -lh0- 3dbf Jul 13 16:23 jp2a-0.9.22/tests/dalsnuten-640x480-gray-low.jpg
[generic]                  861    7191  12.0% -lh5- 695d Jul 19 15:21 jp2a-0.9.22/tests/dalsnuten-640x480-gray-low.txt
[generic]                  836    7191  11.6% -lh5- eaab Jul 13 16:56 jp2a-0.9.22/tests/dalsnuten-640x480-rgb-low.txt
[generic]                  640    3969  16.1% -lh5- 5738 Jul 19 15:21 jp2a-0.9.22/tests/dalsnuten-80x49-inv.txt
[generic]                 6604  134402   4.9% -lh5- 3e85 Jul 29 12:30 jp2a-0.9.22/tests/dalsnuten-color.html
[generic]                  385    4275   9.0% -lh5- c779 Jul 27 14:19 jp2a-0.9.22/tests/dalsnuten-color.txt
[generic]                  385    2291  16.8% -lh5- 1d69 Jul 26 10:05 jp2a-0.9.22/tests/dalsnuten-invert.txt
[generic]                    8       8 100.0% -lh0- 8d1d Jul 19 15:21 jp2a-0.9.22/tests/dalsnuten-jp2a-2000x2000-md5.txt
[generic]                  330    2291  14.4% -lh5- 2f6e Jul 26 10:04 jp2a-0.9.22/tests/dalsnuten-normal.txt
[generic]                  352    1896  18.6% -lh5- bc1d Jul 26 10:03 jp2a-0.9.22/tests/flip-xy-invert.txt
[generic]                  911    2430  37.5% -lh5- 16b4 Jul 19 15:21 jp2a-0.9.22/tests/grind-blue.txt
[generic]                11904   79780  14.9% -lh5- 4d5e Jul 29 12:29 jp2a-0.9.22/tests/grind-color-dark-fill.html
[generic]                 6587   43900  15.0% -lh5- 8982 Jul 29 12:29 jp2a-0.9.22/tests/grind-color-dark.html
[generic]                11909   79783  14.9% -lh5- f132 Jul 29 12:29 jp2a-0.9.22/tests/grind-color.html
[generic]                  984    7316  13.4% -lh5- 63c0 Jul 28 12:59 jp2a-0.9.22/tests/grind-color.txt
[generic]                17628  126810  13.9% -lh5- 639f Jul 29 12:38 jp2a-0.9.22/tests/grind-flipx.html
[generic]                17665  126810  13.9% -lh5- 3cf6 Jul 29 12:41 jp2a-0.9.22/tests/grind-flipxy.html
[generic]                17641  126810  13.9% -lh5- 3548 Jul 29 12:41 jp2a-0.9.22/tests/grind-flipy.html
[generic]                  924    2430  38.0% -lh5- 75f9 Jul 19 15:21 jp2a-0.9.22/tests/grind-green.txt
[generic]                  930    2430  38.3% -lh5- af83 Jul 19 15:21 jp2a-0.9.22/tests/grind-red.txt
[generic]                59479   59479 100.0% -lh0- e34b Jul 18 15:29 jp2a-0.9.22/tests/grind.jpg
[generic]                  926    2430  38.1% -lh5- 1236 Jul 19 15:21 jp2a-0.9.22/tests/grind.txt
[generic]                22157   22157 100.0% -lh0- a721 Jul 13 11:00 jp2a-0.9.22/tests/jp2a.jpg
[generic]                  573    2910  19.7% -lh5- afee Jul 19 15:21 jp2a-0.9.22/tests/logo-30.txt
[generic]                18923   18923 100.0% -lh0- e801 Jul 18 13:42 jp2a-0.9.22/tests/logo-40x25-gray.jpg
[generic]                  973    4529  21.5% -lh5- f043 Jul 29 11:02 jp2a-0.9.22/tests/logo.html
[generic]                   70      70 100.0% -lh0- 09aa Jul 26 10:49 jp2a-0.9.22/tests/Makefile
[generic]                  364    2106  17.3% -lh5- 7f57 Jul 26 10:02 jp2a-0.9.22/tests/normal-b.txt
[generic]                  364    1906  19.1% -lh5- 2c3f Jul 26 10:02 jp2a-0.9.22/tests/normal-clear.txt
[generic]                 3969   94185   4.2% -lh5- 5ca0 Jul 19 15:21 jp2a-0.9.22/tests/normal-curl.txt
[generic]                  622    5863  10.6% -lh5- 90fa Jul 26 10:04 jp2a-0.9.22/tests/normal-verbose.txt
[generic]                  353    1896  18.6% -lh5- bea5 Jul 26 10:02 jp2a-0.9.22/tests/normal.txt
[generic]                 1684    5745  29.3% -lh5- 0c33 Jul 29 12:55 jp2a-0.9.22/tests/run-tests.sh
[generic]                   43      43 100.0% -lh0- 90d6 Jul 19 15:21 jp2a-0.9.22/tests/test-term.txt
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        84 files  591425 2002512  29.5%            Aug 11 14:54

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>