Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Added automatic creation of PNG files when non existent yet
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Nov 25, 2014
1 parent fb9a686 commit 577b6e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/frameit/editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ module Orientation

def initialize
converter = FrameConverter.new
converter.run unless converter.frames_exist?
unless converter.frames_exist?
# First run
converter.run
else
# Just make sure, the PSD files are converted to PNG
converter.convert_frames
end
end

def run(path, color = Color::BLACK)
Expand Down

0 comments on commit 577b6e3

Please sign in to comment.