Closed (fixed)
Project:
ImageCache
Version:
6.x-2.0-beta9
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2011 at 23:38 UTC
Updated:
2 Jun 2012 at 23:43 UTC
I have imagecache installed and I'm using views. In my fields in views I have selected one of the presets for my images to resize. When I try to view my completed page the path to the thumbnail is incorrect. It links to http://www.example.com/sites/default/files/imagecache/album/%252Fimages/...
Where did that %252F come from? how can I fix this to show the correct url
Comments
Comment #1
fugazi commentedsame problem
Comment #2
ruriko commentedcan anyone help!
Comment #3
sandrewj commentedThat will show up if there is a leading slash in the image path.
Comment #4
ruriko commentedThere is no leading slash in the original image path. It works if I show full size image but it doesn't work when I select one of imagecache's presets
Comment #5
sandrewj commentedThe derivative image path is created from the original image path:
if the image path starts with the file directory path, that section is removed along with the next slash
the file directory path, the word imagecache, the presetname and the processed path from above are combined:
the result is processed by drupal, which converts // in a path to /%252F
since you have a %252F between the presetname and the truncated image path, either:
1. The view is sending a path without the leading file directory path, but with a leading slash
2. The presetname has a trailing slash
Comment #6
fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.