grid-img generation problem

5 views
Skip to first unread message

Tiger

unread,
Dec 8, 2009, 7:41:24 PM12/8/09
to Compass
I've experienced a strange problem when tried to generate the grid
image using
compass --grid-img 22+7

-it generated image 28x20px instead of 29x20 as I expected. Because of
this the blueprint debug grid was not properly aligned and it took me
a while to find out why.

I thought it could be related to the fact that I was using compass on
Windows, but trying it in Cygwin and standalone Ubuntu 9.04 gave me
the same result. After some experiments I've found that the image
generated as "22+7" is binary identical to the "22+6" one. This
doesn't happen on close-range sizes that I've tried - 23+7, 22+8, etc.
were correct. Probably, there could be similar problem with other
values/ranges - had no time to try out more.

My config (Windows 7):
Compass 0.8.17 [2465bab]
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
ImageMagick 6.5.6-8 2009-10-03 Q8 OpenMP

Hope this will help to troubleshoot the issue. Please let me know if I
should also create an issue on github. Thanks.

Chris Eppstein

unread,
Dec 8, 2009, 7:49:35 PM12/8/09
to compas...@googlegroups.com
I think this bug is fixed in v0.10.

Is it possible for you to upgrade?


--

You received this message because you are subscribed to the Google Groups "Compass" group.
To post to this group, send email to compas...@googlegroups.com.
To unsubscribe from this group, send email to compass-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.



Tiger

unread,
Dec 8, 2009, 8:09:52 PM12/8/09
to Compass
Sorry if it's a stupid question (I'm new to Ruby world), but how can I
get 0.10? I've tried the following:
$ gem sources --add http://gemcutter.org/
$ sudo gem install compass-edge
But this installs only 0.9.5 where image generation is still an issue.
I see that there is a v0.10.0.pre2 on the github, but I'm not sure how
to build it from source (sorry).

Chris Eppstein

unread,
Dec 8, 2009, 8:11:20 PM12/8/09
to compas...@googlegroups.com
Sorry. I sent out instructions a couple days ago. Please uninstall compass and compass edge. Then:

sudo gem install haml
sudo gem install compass --pre

chris

Tiger

unread,
Dec 8, 2009, 8:25:47 PM12/8/09
to Compass
Thank you for instructions, I've successfully installed
compass-0.10.0.pre2 (compass --version shows "Compass 0.10.0
[2465bab]"). However, the image size is still an issue (to be sure
I've created a new blueprint project using v0.10 and tried both re-
creating the image with a '--force' option and deleting it manually/
creating new) - still 28x20, 183bytes.

Sergei

On Dec 9, 3:11 am, Chris Eppstein <ch...@eppsteins.net> wrote:
> Sorry. I sent out instructions a couple days ago. Please uninstall compass
> and compass edge. Then:
>
> sudo gem install haml
> sudo gem install compass --pre
>
> chris
>
> On Tue, Dec 8, 2009 at 5:09 PM, Tiger <garm...@gmail.com> wrote:
> > Sorry if it's a stupid question (I'm new to Ruby world), but how can I
> > get 0.10? I've tried the following:
> >  $ gem sources --addhttp://gemcutter.org/
> >  $ sudo gem install compass-edge
> > But this installs only 0.9.5 where image generation is still an issue.
> > I see that there is a v0.10.0.pre2 on the github, but I'm not sure how
> > to build it from source (sorry).
>
> > On Dec 9, 2:49 am, Chris Eppstein <ch...@eppsteins.net> wrote:
> > > I think this bug is fixed in v0.10.
>
> > > Is it possible for you to upgrade?
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Compass" group.
> > To post to this group, send email to compas...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > compass-user...@googlegroups.com<compass-users%2Bunsu...@googlegroups.com>
> > .

Chris Eppstein

unread,
Dec 8, 2009, 8:30:07 PM12/8/09
to compas...@googlegroups.com
Sorry I guess the bug I fixed was with the height. I've filed this issue for tracking purposes:


Patches welcome.

chris

To unsubscribe from this group, send email to compass-user...@googlegroups.com.

elliotcm

unread,
Dec 25, 2009, 4:44:31 PM12/25/09
to Compass
Possible fix at http://github.com/elliotcm/compass/commit/809906ee82b440668e01652322b1c7f921d711b5

Seems to be a rounding issue of some sort.

This simplification doesn't seem to have any adverse effects.

Pull request sent.

Elliot

On Dec 9, 1:30 am, Chris Eppstein <ch...@eppsteins.net> wrote:
> Sorry I guess the bug I fixed was with the height. I've filed this issue for
> tracking purposes:
>
> http://github.com/chriseppstein/compass/issues/#issue/66
>
> Patches welcome.
>
> chris
>

> > <compass-users%2Bunsu...@googlegroups.com<compass-users%252Buns...@googlegroups.com>

Majic3

unread,
Jan 8, 2010, 2:17:24 AM1/8/10
to Compass
Grid Image Generation on windows appears to have issue again in pre4

compass --grid-img --force --trace

←[32m exists ../img←[0m
NoMethodError on line 18 of g: undefined method `bytes' for "IHDR
\000\000\000(\000\000\000\024\b\002\000\000\000":String
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/
grid_builder.rb:22:in `chunk'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/
grid_builder.rb:44:in `to_blob'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/
grid_builder.rb:96:in `generate!'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/
commands/generate_grid_background.rb:83:in `perform'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/
commands/base.rb:18:in `execute'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/
commands/project_base.rb:19:in `execute'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/exec/
switch_ui.rb:162:in `do_command'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/exec/
switch_ui.rb:35:in `perform!'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/lib/compass/exec/
switch_ui.rb:18:in `run!'
g:/ruby/lib/ruby/gems/1.8/gems/compass-0.10.0.pre4/bin/compass:26
g:/ruby/bin/compass:19:in `load'
g:/ruby/bin/compass:19

On Dec 25 2009, 9:44 pm, elliotcm <elliot...@googlemail.com> wrote:
> Possible fix athttp://github.com/elliotcm/compass/commit/809906ee82b440668e01652322b...

Chris Eppstein

unread,
Jan 8, 2010, 1:06:13 PM1/8/10
to compas...@googlegroups.com
Actually 'tis related to using ruby 1.8.6 instead of something newer. I have a patch and it will be included in pre5.

chris

To unsubscribe from this group, send email to compass-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages