Jump to content

Relative path to images


Recommended Posts

Hi,

 

For the love of me, I cannot figure this out: I want to use a third party library to crop/smart crop images in a store (this should really be a core functionality btw). However, those scripts require you to do a GET call on a php script. Those (like timthumb or SLIR) cannot handle the full URL which is generated using:

 

{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}

 

I need to get a relative path/real file name, without having to go thru rewriting, because that seems to result in conflicts. How do I get that without hacking core or writing a full blown module? I was trying to find a documentation of the core functions/classes, but there's nothing. I was able to figure out some fragments, but wasn't able to find anything close to get a real, simple "img/p/1/2/3.jpg" relative path+filename.

 

Can anyone help me out with that?

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...