Images gets inserted with a preceding slash. This makes images not show. I'm developing locally and I can't say if it has the same effect online.

Screenshot
http://www.diigo.com/item/image/1ks4o/jyvr

Sample Output

<p><a href="/sites/default/files/images/20110109172259.png" target="_blank"><img alt="" src="/sites/default/files/styles/large/public/images/20110109172259.png" /></a>Test Dolphins</p>

Sample Output

<img alt="" src="/sites/default/files/images/QHZma.jpg" />

Comments

bryancasler’s picture

Title: Preceding slash on output, should it be there? » Image not being re-sized and questionable preceding slash in output

Something odd is going on.

If I upload the file... "afghanistanAVAW-BWweb.jpg" the preview does not display and is output as...

<p><img alt="" src="/sites/default/files/styles/medium/public/images/afghanistanAVAW-BWweb.jpg" /></p>

After saving and viewing the live node the image is still not found and the output is...

<p><img alt="" src="/sites/default/files/styles/medium/public/images/afghanistanAVAW-BWweb.jpg"></p>

If I look in "\sites\default\files\styles\medium\public\images\afghanistanAVAW-BWweb.jpg" for the referenced image, it is not there.

So on top of the preceding slash this means the re-sized image are not being generated.

While editing the node if I remove the preceding slash, the re-sized image is generated and shows up in the editor. If I then save the node everything displays as expected.

xandeadx’s picture

What the "preceding slash"?

If I look in "\sites\default\files\styles\medium\public\images\afghanistanAVAW-BWweb.jpg" for the referenced image, it is not there.

image style "medium" exists?

bryancasler’s picture

Here is a screencast demoing the problem, I hope this helps clarify what is happening.

http://www.screencast-o-matic.com/watch/cXQnrY0hC

xandeadx’s picture

bryancasler’s picture

This fixed it, thanks!

xandeadx’s picture

Status: Needs review » Closed (fixed)