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

Image​2​Base​64

by tm-minty ST2/ST3

Convert images to base64

Details

Installs

  • Total 5K
  • Win 3K
  • OS X 2K
  • Linux 566
Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7
Windows 1 2 4 2 3 1 1 0 3 0 3 0 0 2 2 2 0 0 0 1 2 0 3 0 5 1 1 1 0 1 2 2 0 1 0 3 3 1 1 1 2 0 0 1 2 3
OS X 2 0 2 1 0 0 0 0 0 1 0 0 0 0 1 1 0 1 0 1 3 4 1 3 0 0 0 1 1 2 0 0 0 1 0 0 2 0 1 0 0 5 0 1 0 0
Linux 1 0 0 2 0 0 0 0 0 1 0 0 1 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 1 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.