Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images don't appear in dev environment #361

Closed
ansnap opened this issue Mar 22, 2014 · 5 comments · Fixed by #362
Closed

Images don't appear in dev environment #361

ansnap opened this issue Mar 22, 2014 · 5 comments · Fixed by #362

Comments

@ansnap
Copy link

ansnap commented Mar 22, 2014

I've updated the bundle to the last commit. Before, it worked perfectly. Now, I changed config to:

liip_imagine:
    resolvers:
       default:
          web_path: ~

    filter_sets:
        my_thumb:
            quality: 75
            filters:
                thumbnail: { size: [120, 90], mode: outbound }

and:

web_profiler:
    intercept_redirects: false

And I have urls to images like:
http://localhost/media/cache/profile/uploads/images/profile/1/img.jpg

But they should be:
http://localhost/subfolder/web/media/cache/profile/uploads/images/profile/1/img.jpg

I.e. /subfolder/web/ is missed. How can I fix it?

@makasim
Copy link
Collaborator

makasim commented Mar 22, 2014

try to set the cache_prefix option of the default resolver.

@mappedinn
Copy link

@ansnap have a look on #360.

We have the same problem.

@ansnap
Copy link
Author

ansnap commented Mar 22, 2014

@makasim, I have different subfolders in dev and prod environments. So it'll be not handy when I deploy my project to a working server with config.yml

@mappedinn, yes, exactly the same. I rolled back to the previous branch by typing in the composer.json:
"liip/imagine-bundle": "0.x-dev",
And I'll wait for a stable release of the 1.0.x branch.

@mappedinn
Copy link

@ansnap now, it is working for you correctly with "liip/imagine-bundle": "0.x-dev",?

@ansnap
Copy link
Author

ansnap commented Mar 23, 2014

@mappedinn, yes with config like this:

liip_imagine:
    web_root:   %kernel.root_dir%/../web
    data_root:  %kernel.root_dir%/../web
    filter_sets:
        icon:
            quality:    100
            filters:
                thumbnail: { size: [40, 40], mode: outbound }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants