diff options
author | mms <git@sapka.me> | 2025-01-05 22:34:55 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2025-01-05 22:34:55 +0100 |
commit | bfd8209ad0d80b5027bea8a1a095dadc8bffdc61 (patch) | |
tree | 1d4ec6d63dd3b4a1f788ec340a0fba3cd48b3dea /new/lib/crys/image_processor.rb | |
parent | 628fcf941c322dd0ed24a643c58394392484740e (diff) |
feat(new): splash page in progress
Diffstat (limited to 'new/lib/crys/image_processor.rb')
-rw-r--r-- | new/lib/crys/image_processor.rb | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/new/lib/crys/image_processor.rb b/new/lib/crys/image_processor.rb index 1a33d04..b7e2fd6 100644 --- a/new/lib/crys/image_processor.rb +++ b/new/lib/crys/image_processor.rb @@ -1,10 +1,26 @@ module Crys class ImageProcessor - def initialize(path:, width:, height:, format:) + def initialize(path:, filename:, width: :auto) + @path = path + @filename = filename + @file = File.read(path) end - def path + def relative_path + filename + end + + def filename + filename + end + def processed_asset + file.to_s end + + private + + attr_reader :path, :filename, :file + end end |