- "fill.pos_rel_x" => [0.0, :double],
- "fill.pos_abs_x" => [0],
- "fill.rel_x" => [1.0, :double],
- "fill.abs_x" => [0],
- "fill.pos_rel_y" => [0.0, :double],
- "fill.pos_abs_y" => [0],
- "fill.rel_y" => [1.0, :double],
- "fill.abs_y" => [0]})
+ "fill.pos_rel_x" => [@fill_pos_rel[0], :double],
+ "fill.pos_abs_x" => [@fill_pos_abs[0]],
+ "fill.rel_x" => [@fill_rel[0], :double],
+ "fill.abs_x" => [@fill_abs[0]],
+ "fill.pos_rel_y" => [@fill_pos_rel[1], :double],
+ "fill.pos_abs_y" => [@fill_pos_abs[1]],
+ "fill.rel_y" => [@fill_rel[1], :double],
+ "fill.abs_y" => [@fill_abs[1]]})
+ end
+
+ private
+ def find_image(file)
+ [".", OPTIONS.image_dir].each do |d|
+ f2 = File.join(d, file)
+ return Pathname.new(f2).cleanpath.to_s if File.file?(f2)
+ end
+
+ nil