13 lines
330 B
Ruby
13 lines
330 B
Ruby
|
|
require "mini_magick"
|
|
|
|
input_path = Rails.root.join("app/assets/images/header-logo-original.png")
|
|
output_path = Rails.root.join("app/assets/images/header-logo.png")
|
|
|
|
image = MiniMagick::Image.open(input_path)
|
|
image.format "png"
|
|
image.transparent "white"
|
|
image.write output_path
|
|
|
|
puts "Created transparent logo at #{output_path}"
|