frameit/lib/frameit/trim_box.rb in fastlane-2.196.0 vs frameit/lib/frameit/trim_box.rb in fastlane-2.197.0
- old
+ new
@@ -29,7 +29,13 @@
# Get the trimbox parameters in the MiniMagick string format
def string_format
# Convert trim box parameters to string with syntax: "<width>x<height>+<offset_x>+<offset_y>":
return "#{@width}x#{@height}+#{@offset_x}+#{@offset_y}"
end
+
+ # Get the trimbox parameters in a human readable JSON string format
+ def json_string_format
+ # Create a JSON string from the trim box parameters:
+ return "{\"width\" : #{@width}, \"height\" : #{@height} , \"offset_x\" : #{@offset_x}, \"offset_y\" : #{@offset_y}}"
+ end
end
end