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.27 bin/ix-image-to-base64
ix-cli-0.0.26 bin/ix-image-to-base64
ix-cli-0.0.25 bin/ix-image-to-base64
ix-cli-0.0.24 bin/ix-image-to-base64
ix-cli-0.0.23 bin/ix-image-to-base64
ix-cli-0.0.22 bin/ix-image-to-base64
ix-cli-0.0.21 bin/ix-image-to-base64
ix-cli-0.0.20 bin/ix-image-to-base64
ix-cli-0.0.19 bin/ix-image-to-base64
ix-cli-0.0.18 bin/ix-image-to-base64
ix-cli-0.0.17 bin/ix-image-to-base64
ix-cli-0.0.16 bin/ix-image-to-base64
ix-cli-0.0.15 bin/ix-image-to-base64
ix-cli-0.0.14 bin/ix-image-to-base64
ix-cli-0.0.13 bin/ix-image-to-base64
ix-cli-0.0.12 bin/ix-image-to-base64
ix-cli-0.0.11 bin/ix-image-to-base64
ix-cli-0.0.10 bin/ix-image-to-base64
ix-cli-0.0.9 bin/ix-image-to-base64
ix-cli-0.0.7 bin/ix-image-to-base64