Getting image path to work
54drupal - June 3, 2008 - 22:29
There may be an obvious answer to this but I can't find it in the forums.
I've installed the image module and also image assist.
When inserting an image using image assist the image does not appear.
I've checked the url it reference and it is as follows:
http://www.mysite.com//home/mysite/public_html/files/images/image.gif
In the image module settings I've set "images" as the path.
Image assist seems to insert the full domain and then look for the relative path..
Where can I change these settings to get images to appear??
Thanks

What is your files path in
What is your files path in http://www.mysite.com/admin/settings/file-system ?
It should be either
files(relative to Drupal) or/home/mysite/public_html/files(full path).Something similar to what you describe could happen if you use the full path and you forget the front slash.
If your files path was right and you still have a problem, then try to set
RewriteBase /in your .htaccess file.Thanks, Sorry it seems so
Thanks,
Sorry it seems so obvious. I'm new to Drupal and having worked with various CMS adding images seems to be a real chore when it should be straight forward.
I've installed image assist and I've tried adding an image using it to no avail.
I'm using xstandard as a wysiwyg and an icon appears under it for image assit. I go through the process but nothing appears.
I've turned off xstandard to I just have a text field but option to add image through image assit doesn't appear at all now.
Are there any tutorials on this?
If
If
- your file system path is just
files- your images path is just
images- and you are using clean URLs,
then
the correct image link which must be inserted in the content is
<img src="/files/images/image-name.jpg" />(if you are not using clean URLs then the front slash is not necessary)So, the question is
- whether or not img_assist or whatever tool you are using inserts a wrong image link in the content
- what exactly it inserts, and
- finally what ends up in the html which the browser sees (after being processed by Drupal's filters).
Only the specific details can tell you what the problem is, so that you can solve it or report a bug to the right module developer. There is no general problem with images, so there must be something in the details.
Most modules have a "Documentation" link in their project page, which points either to a Handbook page or to their own "readme" file.
Thanks, the problem appears
Thanks,
the problem appears to be with image assist in that it does not insert an image at all.
My reference on problem with using images was more general. Any other CMS I've used treats this as standard functionality whereas with Drupal there is additional set up involved. This may be ok if you're used to it but for a beginner there are a lot of hoops to jump through to get something so basic to work. From other forum posts I don't seem to be alone in this view..
May try a re-install of image assist or as you recommend post a bug.
thanks again for your reply..
Unfortunately core Drupal
Unfortunately core Drupal does not have any support at all for inline images (except entering html in the content), so this is done by contributed modules.
The solution with the image + img_assist modules is probably the most popular. Other solutions are the inline module for very simple cases, and the CCK + imagecache + imagefield modules for more advanced customization.
About img_assist, make sure that you have followed its installation instructions in INSTALL.txt, especially the part about the "Input format". This is the most usual cause of problems.