2012-09-02 18 views

Antwort

9

Ein Programm namens cacaview ermöglicht Ihnen dies zu tun.

Es ist interaktiv und ermöglicht das Schwenken, Zoomen und Ändern der Anzeigemodi.

Cacaview example

(Full size image)

3

Probieren Sie die Google-Ninja mit, bevor Sie fragen! Ich fand cacaview und aview.

+2

und jetzt diese Seite wurde die erste google's Antwort;) – MiniScalope

1

einfacher können Sie img2txt aus der Caca-Bibliothek verwenden (cacaview ist ein Bild-Browser und öffnet ein neues Fenster, das ist nicht, was hier gefragt wird, denke ich);

Zum Beispiel:

$ img2txt /Users/foo/pool/libs/ipython/docs/resources/ipynb_icon_256x256.png

 .:.:.:.:.:.:.:.:.:.:.:[email protected]       
    . . . . . . . . . . . . ..:;@@t%;;X     
    . . . . . . . . . . . . . . .X8S%%8%.8   
    . . . . . . . . . . . . . . . ..8Xttt%S8.   
    . . .. . . . . . . . . . . . . .8;%88888S   
    . . . . . . . . . . . . . . . . ..8X. . .t  
    .tS%SSS X . :[email protected]:@. . . . . . . .. . . . t  
    . .%:S . [email protected];[email protected]@:; .X8%[email protected] . . [email protected] . .;  
    . . t;@ . . @SS. .S;8 @@. .:8. %%[email protected] 8X8t  
    . . %tX . . @S8 [email protected]@[email protected]: .X:;.tX..8.:[email protected]%tt  
    . . ttX. . .8tt;[email protected] .8: . @8X.X .%88... t  
    . . %tX . . @[email protected]::. . . 88 ...; X% . 88:.S8;t  
    . . ttX . . @X8 . . . .88 . :.;. .88S.%88t  
    .t88 ; 88. .8SS. . . ..88.%[email protected] 8. 8X88;. .;  
    . S%SStSS. .;S.. . . ..:%XX:;; . .;X%;... t  
    . . . . . . . . . . . @XX8;.. . . . . . t  
    . ;@XXX t. .. . .S88%. % %@. . . .. . . . t  
    . %[email protected] . . S888 . 888:. . . . . . . t  
    . S888888 ;. . . .. [email protected]:.: 88 . . . . . .;  
    . %888%888 . . S888.:8%88: X8%tS8t.. . .;  
    . S888.X888;. . .. @[email protected] :;[email protected] . t  
    . :8.X% 8888%.. [email protected]:8S8t88.%[email protected]%. .;  
    [email protected]:88t. ..% 88t ;[email protected];:.... 88888..t  
    . S888S : [email protected] .;88X..%:888. ..  888. t  
    . t8:XS. ..:888;[email protected]: 88 .. . .888X:.;  
    . X888; . . ;:[email protected]:88:[email protected] . . . %88:8.t  
    . %8 8S. .. 8888; @8S..:888 . . .8888 t  
    . %888;. .. 888SX;@8:.;8888 . . ..8S88:.;  
    . [email protected];. . :8:88888;.t8888S.. . :X8888: t  
    . %88 X . . ...:888888;.;88888:tXSS8888t.. t  
    . %[email protected] . . SX88X8: [email protected]%88. . t  
    . tt.. . . .. .::t:t .:.%S. X8%X8;: . . t  
    . . . . . . . .... . ..... ....: . . . t  
    %[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]  

$

auf macosx, können Sie Homebrew verwenden :

$ brew reinstall libcaca --with-imlib2 

(imlib wird verwendet, um aus verschiedenen Formaten zu konvertieren)

+0

Die Standard-Homebrew-Installation für libcaca (dh ohne '--with-imlib2' zu übergeben) scheint nicht in der Lage zu sein, irgendwelche Dateien zu öffnen. – bonh

0

Eine weitere Alternative ist das Ipython-Notebook: Es ist ziemlich gut darin, das zu tun, wonach Sie fragen.

Für Bash: Sie müssen Befehle mit einem Knall voranstellen. Für Bilder: Sie können die rich display system von ipython verwenden.

Ein Screenshot des Ergebnisses:

screenshot of the result

komplette Antwort in dieser post.

1

Ein qualitativ hochwertiges schnelles Standalone-Konvertierungsprogramm (vorausgesetzt Sie haben ein 256-Farben-Terminal) ist pxl, verfügbar unter https://github.com/ichinaski/pxl.

Haftungsausschluss: Ich habe nichts mit dem Entwickler zu tun, aber ich schätze seine Arbeit.

Verwandte Themen