Bugs: Browse | Submit New | Admin

[#27961] scruffy 0.2.6 gem package with crop problem

Date:
2010-03-13 05:27
Priority:
3
Submitted By:
Chu Venj (venj)
Assigned To:
David Parry (suranyami)
Category:
Gem/installation
State:
Open
Summary:
scruffy 0.2.6 gem package with crop problem

Detailed description
Description: Scruffy generate jpg/png file cropped at 200px height.

Other report: http://rubyforge.org/tracker/index.php?func=detail&aid=27492&group_id=2030&atid=7929

I checked out the svn repo at version 66(current), and run all the test with no problem. So I downloaded a tgz pack
of scruffy v0.2.6, and did some comparison. And found a diff as follows:


35c35
<       svg.svg(:xmlns => "http://www.w3.org/2000/svg", 'xmlns:xlink' =>
"http://www.w3.org/1999/xlink", :viewBox => "#{options[:size].first} 100 #{options[:size].last} 200")
{
---
>       svg.svg(:xmlns => "http://www.w3.org/2000/svg", 'xmlns:xlink' =>
"http://www.w3.org/1999/xlink", :viewBox => "0 0 #{options[:size].first} #{options[:size].last}")
{nts.each do |component|
             component.render(svg, 


It seems that an older version is packed as gem. Hope you release a new gem pack with svn version 66 packed, thank you.
Currently I only have to modify the file provided by gem pack to get scruffy work properly.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2011-03-26 03:50
Sender: John Ferguson

I applied this fix and ran several samples, it seems to address
the immediate issue of cropped images.

Something I noticed was that emitting SVG files produced files
I could view in a tool such as Inkscape and those images showed
all the data.

Attached Files:

Name Description Download
scruffy-svn66-v026.diff diff file between Download

Changes:

Field Old Value Date By
File Added4895: scruffy-svn66-v026.diff2010-03-13 05:27venj