erskinedesign / ed.imageresizer.ee2_addon

EE2+ Version of the ED ImageResizer. Resizes, crops and caches images on the fly.
43 stars 12 forks source link

Non-resized images do not appear. #11

Closed kara-todd closed 12 years ago

kara-todd commented 13 years ago

I had a problem where images that were un-sized returned invalid file paths. I tracked the issue down to an extra '/' being appended to the beginning of the file path.

The following line of code fixed this for me added at line #229:

if($this->image{0} == '/') { $this->image = substr($this->image, 1); }