Log in

No account? Create an account

Renaming Photos


Previous Entry Renaming Photos Oct. 18th, 2005 @ 07:13 pm Next Entry

I have a number of images in my Fliers folder in my scrapbook that I remote link elsewhere on the web. I have noticed that when I do this, the image does not appear on certain sites, even when the images are public.

I have determined that the problem lies in the missing .jpg extension on the photo name. Certain bulletin boards (particularly myspace) do not recognise the image as an image without this extension.

I have confirmed this by moving the image to another server, but with the same name as in my scrapbook. It does not show up in the bulletin unless the .jpg extension is added to the name.

So I was wondering if there is a way to rename the photos in the scrapbook, or a setting where I can add the extension to all the photos. I sent a similar email as this to myspace, but I believe sorting this out on the server housing the photos would offer a more general solution.

Any Information is Greatly Appreciated.

Leave a comment
[User Picture Icon]
Date:October 21st, 2005 06:59 pm (UTC)
I don't know of a comprehensive solution to that problem, but I can second your interest in it. I ran into something similar a couple of years ago trying to display the PNG image from w3.org to brag that one of my pages on my ISP's server was valid HTML 4.

The problem seemed to have more to do with the browser than with the server, though. Some browsers rely on the image's filename extension to guess its MIME type, either because they can't do it any other way, or because doing it that way is an option in the browser's preference settings. Filename extensions on the server might not be the best solution, because it might make those browsers more vulnerable to trojans and viruses that run from IMG tags.
[User Picture Icon]
Date:October 22nd, 2005 01:18 pm (UTC)
Interesting news about the browsers. I've been using Opera 7.5, and while it has no trouble displaying images from Scrapbook, it reads as HTML files any I save. There are a few other sites at which Opera shows the same behavior, but images from most sites it recognizes as being .jpg or .gif or whatever they actually are.

But it's annoying to have to go through the saved images from Scrapbook or one of the other sites of the same sort and tell my image viewer (Irfanview) to rename them with the correct file extension, one at a time. Sometimes I just use Firefox for fetching images from Scrapbook, though I'd rather just be able to get Opera to recognize them correctly.
[User Picture Icon]
Date:October 22nd, 2005 04:06 pm (UTC)
I have Opera 7.54 installed on Windows 95 on another machine, so I checked it out. Mine does recognize the MIME types and can display them when I look up the image properties, and although the Save dialog defaults to HTML, it saves the images as image files, and without adding the wrong filename extension (but doesn't add the right one, either, even if I pull down the menu to deselect HTML :/).

For me, Opera has usually (going back at least as far as version 5 or so) seemed relatively good at noticing when a file used as the src attribute in an IMG tag wasn't really an image. As I recall, IE 4 was one that used to have a lot of trouble that way. Netscape 4 may have been another. I don't know how much of that has changed since, or in what ways. (I'm glad to see that the images will be accessible through links with filename extensions now; I'm just curious about whether that fix might open up a security hole for a few people whose browsers aren't very smart.)
[User Picture Icon]
Date:October 21st, 2005 07:16 pm (UTC)
There is a patch already committed to fix this, though I don't believe it has gone live yet. When it does...


can also be accessed as:

[User Picture Icon]
Date:October 24th, 2005 02:26 pm (UTC)
Can you please confirm that there are or are not typos in the "also be accessed" URL. Specifically, I'm wondering about the two dashes.

(yes, I understand that it doesn't work right now because the patch isn't live yet)

P.S. Nice cat.
[User Picture Icon]
Date:November 1st, 2005 05:00 pm (UTC)
I just tested it out and...


are the same pic, and all i did was add the .jpg // you have to be careful and add the "correct" ext. (i.e. i have some png's and gif's and jpg's and i don't know which pic is which, so i've to got to test it first.)

Hope that helps maybe...
[User Picture Icon]
Date:November 1st, 2005 05:01 pm (UTC)
using firefox 1.0.1
(Leave a comment)
Top of Page Powered by LiveJournal.com