Sha256: 62b3d45432597e7c81e5192b38627bcad5a67ddc832d0f3611e8547b8f4726d4

Contents?: true

Size: 158 Bytes

Versions: 26

Compression:

Stored size: 158 Bytes

Contents

#!/usr/bin/env ruby

require 'base64'

template = '<img src=\"data:image/png;base64,/%s\" />'

base64 = Base64.encode64(STDIN.read)

puts template % [base64]

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.6 bin/ix-image-to-base64
ix-cli-0.0.5 bin/ix-image-to-base64
ix-cli-0.0.4 bin/ix-image-to-base64
ix-cli-0.0.3 bin/ix-image-to-base64
ix-cli-0.0.2 bin/ix-image-to-base64
ix-cli-0.0.1 bin/ix-image-to-base64