Hmm rather strangely I appear to have run into the same problem as Paul!
None of these work:
{exp:imgsizer:size src=“images/site/project-blank.png” width=“270” height=“100” alt=“test”}
{exp:imgsizer:size src=”/images/site/project-blank.png” width=“270” height=“100” alt=“test”}
{exp:imgsizer:size src=”{site_url}images/site/project-blank.png” width=“270” height=“100” alt=“test”}
{exp:imgsizer:size src=”{site_url}/images/site/project-blank.png” width=“270” height=“100” alt=“test”}
This works:
{exp:imgsizer:size src=“http://example.com/v2/images/site/project-blank.png” width=“270” height=“100” alt=“test”}
{site_url} outputs “http://example.com/v2/”
Any Idea what is up?
What is strange is I also more hosting on the the same shared server and it’s working fine on that other site, only difference is that I have a htaccess rule to remove the www part of the url.
*edit* here is some debug info:
src = images/site/project-blank.png
img_base = images/site
img_basename = project-blank.png
img_extension = png
img_filename = project-blank
img_rootstep = /home/user/public_html/images/site
img_rootpath = /home/user/public_html/images/site
img_fromroot = /home/user/public_html/images/site/project-blank.png
The above misses out the fact it is in a sub directory called V2…
src = http://example.org/v2//images/site/project-blank.png
img_base = http://example.org/v2//images/site
img_basename = project-blank.png
img_extension = png
img_filename = project-blank
img_rootstep = /home/user/public_html/http://example.org/v2//images/site
img_rootpath =
img_fromroot = /project-blank.png
This add a double slash to the rootstep, and im not sure if the domain should be their either