make_zoom_gif.rb
# render one frame of the gif
# src_s: src for smaller image to be overlaid on main image
# scale_b: scale for the bigger (midsize) image.
# scale_s: scale for the smaller size image.
# center_x, center_y: vanishing point, coordinates relative to upper left of img
# out_path: file to write
render one frame of the gif
src_s: src for smaller image to be overlaid on main image
scale_b: scale for the bigger (midsize) image.
scale_s: scale for the smaller size image.
center_x, center_y: vanishing point, coordinates relative to upper left of img
out_path: file to write
render one frame of the gif src_s : src for smaller image to be overlaid on main image scale_b : scale for the bigger ( midsize ) image . scale_s : scale for the smaller size image . center_x center_y : vanishing point coordinates relative to upper left of img out_path : file to write
def render(src_s, scale_b, scale_s, center_x, center_y, out_path)
    hug = render_piece(@img_path, scale_b / scale_s, center_x, center_y)
    big = render_piece(@img_path, scale_b, center_x, center_y)
    sml = render_piece(src_s, scale_s, center_x, center_y)
    magick = "convert -size #{_dim(@w0, @h0)} xc:none #{hug} #{big} #{sml} \"#{out_path}\""
    cmd(magick)
  end
def render ( src_s , scale_b , scale_s , center_x , center_y , out_path ) hug = render_piece ( @img_path , scale_b / scale_s , center_x , center_y ) big = render_piece ( @img_path , scale_b , center_x , center_y ) sml = render_piece ( src_s , scale_s , center_x , center_y ) magick = "convert -size #{_dim(@w0, @h0)} xc:none #{hug} #{big} #{sml} \"#{out_path}\"" cmd ( magick ) end
render one frame of the gif
src_s: src for smaller image to be overlaid on main image
scale_b: scale for the bigger (midsize) image.
render one frame of the gif src_s : src for smaller image to be overlaid on main image scale_b : scale for the bigger ( midsize ) image .
src_s
<not_specific>
scale_b
<not_specific>
scale_s
<not_specific>
center_x
<not_specific>
center_y
<not_specific>
out_path
<not_specific>