Skip to content

Commit

Permalink
release 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
netxph committed Jul 4, 2010
1 parent 238cf92 commit f0971ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -2,12 +2,12 @@ require 'rubygems'
require 'rake'
require 'echoe'

Echoe.new('ruby-dzi', '0.1.1') do |p|
Echoe.new('ruby-dzi', '0.1.2') do |p|
p.description = "Ruby Dzi slices images into several tiles and creates dzi descriptor file."
p.url = "http://github.com/netxph/ruby-dzi"
p.author = "Marc Vitalis"
p.email = "marc.vitalis@live.com"
p.ignore_pattern = ["*.jpg", "*_files/**/**", "test.rb", "*.dzi", "pkg"]
p.ignore_pattern = ["*.jpg", "*_files/**/**", "test.rb", "*.dzi", "pkg/*", "pkg/**/**"]
p.development_dependencies = ["rmagick"]
end

Expand Down
6 changes: 3 additions & 3 deletions lib/ruby_dzi.rb
Expand Up @@ -44,7 +44,7 @@ def generate!(name, format = 'jpg')
@format = format

@levels_root_dir = File.join(@dir, @name + '_files')
@xml_descriptor_path = File.join(@dir, @name + '.dzi')
@xml_descriptor_path = File.join(@dir, @name + '.' + @output_ext)

image = get_image(@image_path)

Expand All @@ -68,7 +68,7 @@ def generate!(name, format = 'jpg')
# iterate over rows
y, row_count = 0, 0
while y < height
dest_path = File.join(current_level_dir, "#{col_count}_#{row_count}.#{@extension}")
dest_path = File.join(current_level_dir, "#{col_count}_#{row_count}.#{@format}")
tile_width, tile_height = tile_dimensions(x, y, @tile_size, @overlap)

save_cropped_image(image, dest_path, x, y, tile_width, tile_height, @quality)
Expand All @@ -87,7 +87,7 @@ def generate!(name, format = 'jpg')
write_xml_descriptor(@xml_descriptor_path,
:tile_size => @tile_size,
:overlap => @overlap,
:format => @extension,
:format => @format,
:width => orig_width,
:height => orig_height)
end
Expand Down

0 comments on commit f0971ce

Please sign in to comment.