フロントエンドプレイアブル
This commit is contained in:
12
bin/process_logo.rb
Normal file
12
bin/process_logo.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
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}"
|
||||
Reference in New Issue
Block a user