Reply
Why Do Images "crack" in DW when inserted?
Old 05-13-2006, 10:25 PM Why Do Images "crack" in DW when inserted?
finesse's Avatar
Average Talker

Posts: 26
Location: Brooklyn New York
I am having touble getting images that I created for a page header in photoshop and illustrator (cs) to appear in DWMX without getting a cracked simble in place of my image. I look at the code to check to see if it is written correctly but that haven't revealed any clues. Can some one please help.
finesse is offline
Reply With Quote
View Public Profile Visit finesse's homepage!
 
When You Register, These Ads Go Away!
Old 05-13-2006, 11:47 PM Re: Why Do Images "crack" in DW when inserted?
blue-dreamer's Avatar
Webmaster Talker

Posts: 708
Location: Middle England
two things to look for...

are the image paths correct in the <a href="path/to/image.gif" tag?

have you uploaded the images to the correct location on your web site?
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 05-16-2006, 12:59 PM Re: Why Do Images "crack" in DW when inserted?
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
You need to define a site
__________________
Daniel
"I think therefore I am, I think." <!-- George Carlin
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Old 05-17-2006, 11:10 AM Re: Why Do Images "crack" in DW when inserted?
finesse's Avatar
Average Talker

Posts: 26
Location: Brooklyn New York
Ok. My site is awilled.com. I've created a logo for the site in Illustrator, then transfered it to Photoshop to save it as .jpg. But when I upload it to my site, or load it in DW it Cracks. This is the tag between the body tags:
<img src="file:///C|/Documents%20and%20Settings/Finesse%20Williams/my%20documents/my%20pictures/aslogo.jpg">
This is the way the tag appears in DW. I don't know how to get this site into DW. I had someone do the site for me. I will upload the image on the site so you can look at the code.
finesse is offline
Reply With Quote
View Public Profile Visit finesse's homepage!
 
Old 05-17-2006, 01:27 PM Re: Why Do Images "crack" in DW when inserted?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,322
Name: Keith Marshall
Location: West Hartford, CT
The source is pointing to your local computer (ie - your computer in your "my documents" folder).

The image needs to be set to either an absolute path to your web server, or a relative path:

HTML Code:
Absolute:
<img src="http://www.mydomain.com/images/aslogo.jpg">
 
or Relative to the viewing html page:
<img src="images/aslogo.jpg">
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-17-2006, 02:01 PM Re: Why Do Images "crack" in DW when inserted?
finesse's Avatar
Average Talker

Posts: 26
Location: Brooklyn New York
So if I change the code to a relative path, excluding my hard drive path, stating the file, will this work?
finesse is offline
Reply With Quote
View Public Profile Visit finesse's homepage!
 
Old 05-17-2006, 02:03 PM Re: Why Do Images "crack" in DW when inserted?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,322
Name: Keith Marshall
Location: West Hartford, CT
Quote:
Originally Posted by finesse
So if I change the code to a relative path, excluding my hard drive path, stating the file, will this work?
- Only if the image is located in the same directory of the html page
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-17-2006, 02:08 PM Re: Why Do Images "crack" in DW when inserted?
finesse's Avatar
Average Talker

Posts: 26
Location: Brooklyn New York
Thanks Graphic, but i changed the code to a relative path and I'm still getting the cracked image. How do Ii pull down pages on the web into Dreamwaever?
finesse is offline
Reply With Quote
View Public Profile Visit finesse's homepage!
 
Old 05-17-2006, 02:19 PM Re: Why Do Images "crack" in DW when inserted?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,322
Name: Keith Marshall
Location: West Hartford, CT
I don't know dreamweaver myself, but here is a guide:

HTML Code:
Let's say you html page is located:
http://www.mydomain.com/index.html
 
And your image is located:
http://www.mydomain.com/images/aslogo.jpg
 
The image src would point to:
<img src="images/aslogo.jpg">
 
--------------------------
 
But if your html page is located:
http://www.mydomain.com/somewhere/index.html
 
And your image is located:
http://www.mydomain.com/images/aslogo.jpg
 
You would have to point backwards (../) to the parent directory to find the image directory:
<img src="../images/aslogo.jpg">
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-18-2006, 02:07 PM Re: Why Do Images "crack" in DW when inserted?
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Okay... is your computer that your using dreamweaver on set up to run as a web server (IIS)? If so, it would save you soooo much time to "define a site" in dreamweaver. Even if you dont have your machine set up with IIS, you need to define a site. This will eliminate the garbled source paths in the code. If you need help defining your site, check out this link.

http://goliath.st-andrews.ac.uk/its/...er/dw031.shtml

Good luck
__________________
Daniel
"I think therefore I am, I think." <!-- George Carlin
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Old 05-22-2006, 05:38 PM Re: Why Do Images "crack" in DW when inserted?
finesse's Avatar
Average Talker

Posts: 26
Location: Brooklyn New York
how do I get my computer set up on IIS? These images are being created in illustrator. I don't know if its the programs not jelling or what.
finesse is offline
Reply With Quote
View Public Profile Visit finesse's homepage!
 
Old 05-22-2006, 05:45 PM Re: Why Do Images "crack" in DW when inserted?
finesse's Avatar
Average Talker

Posts: 26
Location: Brooklyn New York
THE IMAGES IS LOCATED ON MY COMPUTER. I also paid some to build and host a site for me: aswilled.com. And this is where I want to place the image. I can't get to the code for this site. I don't know if I could pull it into DW.
finesse is offline
Reply With Quote
View Public Profile Visit finesse's homepage!
 
Old 05-23-2006, 10:38 AM Re: Why Do Images "crack" in DW when inserted?
LadynRed's Avatar
Super Moderator

Posts: 6,557
Location: Tennessee
The path to your image must be that of the path on the server where your site is hosted. What you have to do on YOUR computer is make sure that your web site structure is EXACTLY the same as what's on your host server. Then as mentioned above, in DW, define your site and tell it where your default images folder for the site is. Once you have this exact duplicate on your machine and the site defined in DW, when you upload your pages to your hosting server the paths to images and other pages should not break.

It's not necessary to set up IIS on your machine for this.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Why Do Images "crack" in DW when inserted?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17201 seconds with 12 queries