View Full Version : Graphics problem
MsBritmor
11-08-2007, 10:39 PM
I have been uploading my site to HostMonster, and some of my jpgs are loading as text files. I have tried deleting those files and uploading again, but it is not working. I can view them as graphics in File Manager, but they are X'd-off on my website. Any idea how I can resolve this?
Karen
shadmego
11-09-2007, 06:57 AM
What do you mean your graphics are loading as text files?
Can you give a link so we can see what are you trying to describe here?
If your images are loading as text files, then your html will be filled with strange, unreadable characters. If they simply aren't loading, then you will have an X where the image is supposed to be. The X indicates your image path is incorrect.
Seeing the problem will help further troubleshoot, but if you want to try yourself, look in your html page for this tag, <img>. Inside that tag, look for a parameter labeled src. The value indicated there is where your html is looking for your jpg file. You have to make sure it points to the correct place.
~regards
MsBritmor
11-09-2007, 10:45 AM
No, the html code is correct because my site is still up and functioning on my old server. I won't be touching that until my site is totally loaded and functioning here.
Certain graphics are loading as "text/x-generic" files rather than "image/x-generic" files, and I did notice last night that they are loading as JPG rather than jpg, unlike my working graphics. When I highlight them and view them through the HostMonster viewer, they appear normal, but on my webpage they appear X'd out.
I have another site on here that I do, and I had the same problem when I uploaded a bunch of large, full-sized graphics (except that those didn't view well.... came out looking "watercolor-like"). Once I resized them a bit smaller, they uploaded correctly. The current graphics I am referring to are NOT that large, being no larger than 300 pixels, and, in fact, are much smaller than the previous ones that I resized (to 800 pixels).
Several minutes later.... PROBLEM SOLVED! When I renamed each (bad) file on HostMonster as jpg rather than JPG, they *immediately* changed over to image files. The pages in question are now working properly http://britmorschnauzers.com/weightloss.html
This still does not explain *WHY* these graphics are uploading incorrectly, but at least the fix is fairly simple. Thanks for responding.... I am off to do some more uploading of my webpages now.
Karen
shadmego
11-09-2007, 02:20 PM
If you are using an FTP client, make sure you are uploading images in binary mode. I would also assume the problem, as you stated, is in the capitalization. In most cases, JPG will be seen the same as jpg, but sometimes, it may cause problems. I always try to use lowercase as it seems to be the most transferrable between various servers.
Glad to hear you got it working ... sort of.
~regards
emeraldm
02-25-2008, 03:59 PM
Certain graphics are loading as "text/x-generic" files rather than "image/x-generic" files, and I did notice last night that they are loading as JPG rather than jpg, unlike my working graphics. When I highlight them and view them through the HostMonster viewer, they appear normal,
Several minutes later.... PROBLEM SOLVED! When I renamed each (bad) file on HostMonster as jpg rather than JPG, they *immediately* changed over to image files. The pages in question are now working properly http://britmorschnauzers.com/weightloss.html
This still does not explain *WHY* these graphics are uploading incorrectly, but at least the fix is fairly simple. Thanks for responding.... I am off to do some more uploading of my webpages now.
Karen
Hi,
My images also load as text/x-generic, except they DO NOT change to image even after renaming them and refreshing. They also do not show as x's on my website or at all for that matter. I have triple and quadruple checked the reference path (im pulling from an external css and am calling the image for the site background, so am typing background-image: url("../images/emd2.jpg"), and even tried typing the full path still with no luck.
www.emeraldmissdesigns.com
does anyone have any suggestions for what I might try next?
:confused:
sjlplat
02-25-2008, 06:08 PM
Check your MIME types in cPanel. Have you changed your handlers in .htaccess?
emeraldm
02-26-2008, 12:24 PM
OK, new problem now...I finally did manage to get the images on my primary site to show, but now the images for my add-on domain will not show. That site is www.mattjlindsay.com
I got my images to work by typing url(/images/imagename.jpg)
I had created image and styles folders under the mattjlindsay and tried doing it the same way, but after they didnt load, i wondered if maybe i had to rename those folders a different name than my main image and styles folder, so i renamed them mjimages and mjstyles. I referenced them on the stylesheet as:
url(/mjimages/imagename.jpg)
and have also tried url(mjimages/imagename.jpg) and url(/imagename.jpg) and even tried moving the image directly into the mjstyles folder with url(imagename.jpg) but it will still not bring up the image.
I am able to view the image in my file manager, and have tried renaming and deleting/adding it. Still no luck...
Chella
02-26-2008, 02:29 PM
With this add-on domain, have you enabled hot-link protection? If it's enabled and you haven't white-listed your add-on domain, your images won't display.
shadmego
02-26-2008, 04:49 PM
I just went to your mattjlindsay.com website and all the images (I think) showed up, though the links to other pages don't work, but I also don't know if they have been created yet.
~regards
sjlplat
02-26-2008, 06:25 PM
I can see the images, but opening them directly results in a download prompt rather than simply viewing them in the browser. Something is wrong with the MIME types.
dzincub
08-05-2009, 12:06 AM
i just rename each file from .JPG to .jpg and all become normal..
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.