ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Image​2​Base​64

by tm-minty ALL

Convert images to base64

Details

Installs

  • Total 7K
  • Win 4K
  • Mac 3K
  • Linux 788
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 2 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 2 1 0 1 0 1 0 0 1 0 1 0 0 0 0 1 0 1 0 1 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Image2Base64

Now supports 2 and 3 version of Sublime Text

About

This is a Sublime Text plugin allowing you to open images as converted to base64.

Usage

Press Ctlp+p and search for “Image2Base64” commands

or

Press Ctrl+i+b (hold Ctrl and consequently press i and b), like image->base64. Then select image to be copied to clipboard as base64 code.

Also if you use Sublime Text 2 you can just click on image file in sidebar or open it and it will be opened as base64 code.

Press Ctrl+u+b (hold Ctrl and consequently press u and b), like url->base64. Then input image url to be copied to clipboard as base64 code.

Please note that Sublime Text 2 doesn't support HTTPS so images cannot be loaded over HTTPS

Install

Package Controll

The easiest way to install this is with Package Control.

  • If you just went and installed Package Control, you probably need to restart Sublime Text before doing this next bit.
  • Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
  • Select “Package Control: Install Package” (it'll take a few seconds)
  • Select Image2Base64 when the list appears.

Package Control will automatically keep Git up to date with the latest version.

Alternative

Create plugin folder in Sublime's user packages directory and copy all plugin files there. Then restart Sublime Text.

Thanks

Andrey Petrov for code review and Python consultancy

Ladios Jonquil and Julien Bouquillon for contributing

Contact me

If you have some problems or improvements with it, contact me via GitHub.