Skip to content

resttime/imginu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imginu

imginu interacts with booru imageboards. In addition, it will be the ultimate solution to your booru needs with speed and simplicity in mind. Isn't that awesome?

Usage

(wan (make-instance 'safebooru) :tags "inubashiri_momiji")
(display-image (wan (make-instance 'safebooru) :tags "inubashiri_momiji"))

Add to .emacs to display images in the SLIME REPL

;---------------------------
; Displaying images in REPL
;---------------------------

; If you already have slime-setup, just add slime-media to the list
(slime-setup '(slime-fancy slime-media))

; Allows SLIME to run code in emacs
(setq slime-enable-evaluate-in-emacs t)

; Function that displays the image by taking in a base64 string
(defun slime-media-insert-image-base64 (base64-string &optional image-words)
  (let ((image-type (image-type-from-data base64-string))
	(image-words (if (or (string= image-words "")
			     (eq image-words nil))
			 " "
		       image-words)))
    (slime-media-insert-image (create-image (base64-decode-string base64-string)
					    image-type t)
			      image-words)))

About

Interact with booru API's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors