Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7432975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:32:33+00:00 2026-05-29T09:32:33+00:00

trying to import a folder of sprites… also using Zend Framework so my setup

  • 0

trying to import a folder of sprites… also using Zend Framework so my setup is like the following:

/config.rb

    http_path = "public/"
    css_dir = "public/css"
    sass_dir = "sass"
    images_dir = "public/media"
    javascripts_dir = "public/javascripts"

/sass/blah.scss

    @import "imgim/*.gif";

/public/stylesheets/blah.css
/public/media/imgim/1.gif
                    2.gif
                    etc.gif

So I’m calling the import for my list of images but it just doesn’t like it. Tried trawling through the documentation to see where the base import directory is supposed to be looking. Would be nice if it just said somewhere: ‘yep its starting the search relative to your images_dir’ but it can’t be that because it just isn’t working like that. Tried with additional paths like /public/media/ and so on but it just doesn’t like it.

Anyone got any additional information? tried a google and found nothing :/

Cheers, Dom

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:32:34+00:00Added an answer on May 29, 2026 at 9:32 am

    Don’t worry, most of us ran into that problem. You need to define the images_dir relative to your config.rb, you should also try to set the http_images_path (this defines what is actually rendered in the css-output)

    Example (from one of my Symfony projects)

    images_dir = "../../../../../../web/bundles/projectname/images/"
    http_images_path = "/bundles/projectname/images/"
    

    As you can see, setting the correct directory can become pretty mean if the public folder and the sass files are far apart.

    Try the command compass sprite "../please/change/accordingly/public/media/*.gif" (this will generate the sprite css-output) from where your config.rb lies to debug/test the path.

    Update: If I get your directory structure right your images_dir should be “../public/media/” (one dir up, down into public/media).

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to import a Python module in a C# code like this: var
I am trying to import the contact list from gmail using libgmailer.php but I
I am trying to import an excel file into a data table using GemBox
I am trying to import a site collection and I get the following error:
Hi I'm trying to import jQuery mobile JS in to my ZEND project but
I've been trying to load the JDBC MySQL connector with the following code: import
I am trying to use AppEngine TaskQueue API, so I import it like this:
i'm trying to run the following code from ngram import NGram NGram.compare('foo', 'foobar') But
Hi I am trying to import multiple xsl files from a specific folder to
I'm trying to import a web application into IIS7 using Web Deploy. I packaged

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.