Adobe Dreamweaver Forums



Last 10 THreads :         Restrict Access to Folder not working (Last Post : Waleed_Barakat@adobeforums.com - Replies : 1 - Views : 2 )           »          Re: 100% CPU utilization when playing flash video and12-15-20%(!) even on pause! (Mac OS X 10.5.4 / PowerPC) (Last Post : Hatman72 - Replies : 0 - Views : 1 )           »          Flash Linux x86_64 (Last Post : Lemmiwinks86 - Replies : 2 - Views : 3 )           »          5 Part Flash Player 10 3D Tutorial Series For Flash CS3 (Last Post : Furianaxus - Replies : 3 - Views : 120 )           »          Do not have sufficient disk space (Last Post : Petrus45 - Replies : 11 - Views : 42 )           »          Access Levels: How many can I have? (Last Post : Günter_Schenk@adobeforums.com - Replies : 1 - Views : 2 )           »          Re: Problem with Multi Page Form (getPrimaryKeyValue() error) (Last Post : Günter_Schenk@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Problem with Multi Page Form (getPrimaryKeyValue() error) (Last Post : Adam_S_Bell@adobeforums.com - Replies : 0 - Views : 1 )           »          Delete an uploaded image (Last Post : Günter_Schenk@adobeforums.com - Replies : 9 - Views : 10 )           »          SharedObjects.flush() Error #2130: Unable to flushSharedObject. (Last Post : B3N$MiTH - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Fireworks
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 02:14 PM
Iain71
 
Posts: n/a
Diggs:
Default JPG unknown file type?

I have a site for a client where he can upload images of goods for sale
(digital photo frames and baby monitors), and have just had an email from him
about images not displaying.

In the instances they don't display, I'm using a GD library based script to
show thumbnails of the original images.

You can see what I mean here :

http://www.pixelar.co.uk/monitors/vi...y-monitors.php

However, if you click through to the details page, and then on the image
itself, it displays fine.

Having looked into it, tried uploading other images, I can see nothing wrong.

I tried opening the JPG in FW to export it out as a new JPG to see what that
would do, but FW wouldn't open it - reporting it as an unknown file type.

One of the images is here :

http://www.pixelar.co.uk/images/819E...er%20only2.jpg

So I guess my question is what's the issue with the image, that's preventing
the GD script and FW from recognising it as a valid file type, even though its
a .JPG?



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-01-2008, 02:14 PM
pixlor
 
Posts: n/a
Diggs:
Default Re: JPG unknown file type?

When a program tells you a file isn't the right type, it usually knows what
it's talking about. There's more to a format than an extension. You can put any
extension on a file you want, but that doesn't make it that format.

I opened your file in binary mode in my text editor. It didn't have any header
information at all. I then opened a file I know to be a .jpg. They looked
completely different. So, as an experiment, I changed the extension on your
file from .jpg to .bmp and dragged it into Fireworks. It opened just fine.

Your client needs to save his images as JPGs, not just change the
extension.

Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 02:14 PM
pixlor
 
Posts: n/a
Diggs:
Default Re: JPG unknown file type?

When a program tells you a file isn't the right type, it usually knows what
it's talking about. There's more to a format than an extension. You can put any
extension on a file you want, but that doesn't make it that format.

I opened your file in binary mode in my text editor. It didn't have any header
information at all. I then opened a file I know to be a .jpg. They looked
completely different. So, as an experiment, I changed the extension on your
file from .jpg to .bmp and dragged it into Fireworks. It opened just fine.

Your client needs to save his images as JPGs, not just change the
extension.

Reply With Quote


  #4 (permalink)  
Old 10-01-2008, 02:14 PM
Richard Mason
 
Posts: n/a
Diggs:
Default Re: JPG unknown file type?

On Fri, 26 Sep 2008, pixlor wrote

> I opened your file in binary mode in my text editor. It didn't have
>any header information at all.


I think you would find it did. The first two bytes would be hex 424D
which is 'BM' in ASCII, and BM means BitMap format.

--
Richard Mason
http://www.emdpi.com
Reply With Quote
  #5 (permalink)  
Old 10-01-2008, 02:14 PM
Richard Mason
 
Posts: n/a
Diggs:
Default Re: JPG unknown file type?

On Fri, 26 Sep 2008, pixlor wrote

> I opened your file in binary mode in my text editor. It didn't have
>any header information at all.


I think you would find it did. The first two bytes would be hex 424D
which is 'BM' in ASCII, and BM means BitMap format.

--
Richard Mason
http://www.emdpi.com
Reply With Quote
  #6 (permalink)  
Old 10-01-2008, 02:14 PM
pixlor
 
Posts: n/a
Diggs:
Default Re: JPG unknown file type?

[q]Originally posted by: Newsgroup User
On Fri, 26 Sep 2008, pixlor wrote

> I opened your file in binary mode in my text editor. It didn't have
>any header information at all.


I think you would find it did. The first two bytes would be hex 424D
which is 'BM' in ASCII, and BM means BitMap format.

--
Richard Mason
http://www.emdpi.com
[/q]

:grin; Thanks Richard! I shall remember that! I guess I expect headers to be
more...extensive! Thanks also for the confirmation.



Reply With Quote


  #7 (permalink)  
Old 10-01-2008, 02:14 PM
pixlor
 
Posts: n/a
Diggs:
Default Re: JPG unknown file type?

[q]Originally posted by: Newsgroup User
On Fri, 26 Sep 2008, pixlor wrote

> I opened your file in binary mode in my text editor. It didn't have
>any header information at all.


I think you would find it did. The first two bytes would be hex 424D
which is 'BM' in ASCII, and BM means BitMap format.

--
Richard Mason
http://www.emdpi.com
[/q]

:grin; Thanks Richard! I shall remember that! I guess I expect headers to be
more...extensive! Thanks also for the confirmation.



Reply With Quote
Reply


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 05:46 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk