Corrupt Jpegs

HM
Posted By
Harry Marshall
Jun 11, 2004
Views
406
Replies
9
Status
Closed
I have a problem where I am unable to pin down the cause. Sometimes when I create a Jpeg from an existing Jpeg or Gif using Photoshop 6 and then FTP it to my site it displays incorrectly. Usually the Jpeg starts to display correctly and then I get bands of different colour mixes. Occasionally the Jpegs don’t display at all. However they always display correctly on my in-PC test server. Bothe servers are Apache.

A typical scenario is I resize a batch of (say) about 10 Jpegs in PS6, FTP them to my site (using Terrapin 2.3.2), and 9 work but 1 displays incorrectly. I can usually cure this by going back to the original source (slide or psd file) and recreate the one that is corrupt.

I have checked the size of the Jpegs, and the copies on my own hard disk and the server disk match exactly, but the one displayed in my browser is sometimes a few bytes short.

I am not sure this is a PS problem, but remaking the Jpeg always cures it. Has anyone any ideas?
..

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

G
g-w
Jun 11, 2004
Harry Marshall wrote:

I have a problem where I am unable to pin down the cause. Sometimes when I create a Jpeg from an existing Jpeg or Gif using Photoshop 6 and then FTP it to my site it displays incorrectly. Usually the Jpeg starts to display correctly and then I get bands of different colour mixes. Occasionally the Jpegs don’t display at all. However they always display correctly on my in-PC test server. Bothe servers are Apache.

A typical scenario is I resize a batch of (say) about 10 Jpegs in PS6, FTP them to my site (using Terrapin 2.3.2), and 9 work but 1 displays incorrectly. I can usually cure this by going back to the original source (slide or psd file) and recreate the one that is corrupt.
I have checked the size of the Jpegs, and the copies on my own hard disk and the server disk match exactly, but the one displayed in my browser is sometimes a few bytes short.

I am not sure this is a PS problem, but remaking the Jpeg always cures it. Has anyone any ideas?
.
Sounds like the hosting server is either not getting all the bytes, corrupting them or failing to load the whole image. What hosting site? What bandwidth do you have? Does a forced reload of the page get the full image? Is it always the last photo uploaded?

g-w
T
tacitr
Jun 11, 2004
Sometimes when I
create a Jpeg from an existing Jpeg or Gif using Photoshop 6 and then FTP it to my site it displays incorrectly.

9 times out of 10, this indicates the FTP program you are using is uploading in "ASCII mode" instead of "binary mode."


Biohazard? Radiation hazard? SO last-century.
Nanohazard T-shirts now available! http://www.villaintees.com Art, literature, shareware, polyamory, kink, and more:
http://www.xeromag.com/franklin.html
HM
Harry Marshall
Jun 12, 2004
"g-w" wrote in message
Harry Marshall wrote:

I have a problem where I am unable to pin down the cause. Sometimes when
I
create a Jpeg from an existing Jpeg or Gif using Photoshop 6 and then
FTP it
to my site it displays incorrectly. Usually the Jpeg starts to display correctly and then I get bands of different colour mixes. Occasionally
the
Jpegs don’t display at all. However they always display correctly on my in-PC test server. Bothe servers are Apache.

A typical scenario is I resize a batch of (say) about 10 Jpegs in PS6,
FTP
them to my site (using Terrapin 2.3.2), and 9 work but 1 displays incorrectly. I can usually cure this by going back to the original
source
(slide or psd file) and recreate the one that is corrupt.
I have checked the size of the Jpegs, and the copies on my own hard disk
and
the server disk match exactly, but the one displayed in my browser is sometimes a few bytes short.

I am not sure this is a PS problem, but remaking the Jpeg always cures
it.
Has anyone any ideas?
.
Sounds like the hosting server is either not getting all the bytes, corrupting them or failing to load the whole image. What hosting site? What bandwidth do you have? Does a forced reload of the page get the full image? Is it always the last photo uploaded?

g-w

Refreshing the page makes no difference, even several times to make sure all caches are cleared.

Bandwith available is 2 Gigabyte/month. Hosting site is Vision Internet in the UK. I don’t think the faulty images were the last images uploaded, but I can’t be sure.

However had just noticed I still have a faulty image on my site. It is only slightly corrupt with a small discolored band at the bottom, so I probably overlooked it when I uploaded it. The url is below for anyone that wants to take a look. The other faulty images were similar, but usually more of the image is corrupt.

http://www.harrys-stuff.com/arab-gulf-sharjah/sharjah-fort-g ates.php
HM
Harry Marshall
Jun 12, 2004
"Tacit" wrote in message
Sometimes when I
create a Jpeg from an existing Jpeg or Gif using Photoshop 6 and then FTP it to my site it displays incorrectly.

9 times out of 10, this indicates the FTP program you are using is
uploading in
"ASCII mode" instead of "binary mode."

Biohazard? Radiation hazard? SO last-century.
Nanohazard T-shirts now available! http://www.villaintees.com Art, literature, shareware, polyamory, kink, and more:
http://www.xeromag.com/franklin.html

That was my first thought. So I deliberately uploaded in binary, but it made no difference. The FTP is normally set to auto, and as it uploads other Jpegs and Gifs OK, I don’t think this is the problem.
HM
Harry Marshall
Jun 12, 2004
"Harry Marshall" wrote in message
<snip>
However had just noticed I still have a faulty image on my site. It is
only
slightly corrupt with a small discolored band at the bottom, so I probably overlooked it when I uploaded it. The url is below for anyone that wants
to
take a look. The other faulty images were similar, but usually more of the image is corrupt.

http://www.harrys-stuff.com/arab-gulf-sharjah/sharjah-fort-g ates.php

I did some more checking. The original jpeg on my hard disk is 30,541 bytes. The one on the server is 30,538 bytes – 3 bytes lost.

This would look like an FTP problem, yet I can only cure it by making a fresh Jpeg in Photoshop. Is it possible that Photoshop could put some iffy code in a Jpeg that only shows up after it has been FTP’d?

If I download the Jpeg from the server with FTP it ends up as 30,634 bytes and does not display at all.
XT
xalinai_Two
Jun 13, 2004
On Sat, 12 Jun 2004 22:38:01 +0100, "Harry Marshall" wrote:

"Harry Marshall" wrote in message
<snip>
However had just noticed I still have a faulty image on my site. It is
only
slightly corrupt with a small discolored band at the bottom, so I probably overlooked it when I uploaded it. The url is below for anyone that wants
to
take a look. The other faulty images were similar, but usually more of the image is corrupt.

http://www.harrys-stuff.com/arab-gulf-sharjah/sharjah-fort-g ates.php

I did some more checking. The original jpeg on my hard disk is 30,541 bytes. The one on the server is 30,538 bytes – 3 bytes lost.

This would look like an FTP problem, yet I can only cure it by making a fresh Jpeg in Photoshop. Is it possible that Photoshop could put some iffy code in a Jpeg that only shows up after it has been FTP’d?
If I download the Jpeg from the server with FTP it ends up as 30,634 bytes and does not display at all.

If you do not set your FTP client to binary mode for the transfer (in command line times this would be a "bin" command, now it is different for most clients) each byte containing a value of 0A will be converted to a 0D0A pair on download.

Michael
XT
xalinai_Two
Jun 13, 2004
On Sat, 12 Jun 2004 16:05:57 +0100, "Harry Marshall" wrote:

"Tacit" wrote in message
Sometimes when I
create a Jpeg from an existing Jpeg or Gif using Photoshop 6 and then FTP it to my site it displays incorrectly.

9 times out of 10, this indicates the FTP program you are using is
uploading in
"ASCII mode" instead of "binary mode."

Biohazard? Radiation hazard? SO last-century.
Nanohazard T-shirts now available! http://www.villaintees.com Art, literature, shareware, polyamory, kink, and more:
http://www.xeromag.com/franklin.html

That was my first thought. So I deliberately uploaded in binary, but it made no difference. The FTP is normally set to auto, and as it uploads other Jpegs and Gifs OK, I don’t think this is the problem.

Your description of filesize shrinking on upload and growing on download tells something different.

Michael
HM
Harry Marshall
Jun 13, 2004
"Xalinai" wrote in message
On Sat, 12 Jun 2004 16:05:57 +0100, "Harry Marshall" wrote:
<snip>
That was my first thought. So I deliberately uploaded in binary, but it
made
no difference. The FTP is normally set to auto, and as it uploads other Jpegs and Gifs OK, I don’t think this is the problem.

Your description of filesize shrinking on upload and growing on download tells something different.

Michael

You were right. It was a Terrapin FTP problem. I found more Jpegs on my site that had 1 byte missing, even though they displayed OK.

As a test I downloaded a trial version of Cuteftp and re-uploaded the faulty Jpeg. It now is the same size on my hard disk and the server and displays OK.

I never had problems with Terrapin before, but the problem may have started when I upgraded from version 2.3.1 to 2.3.2.

I have looked for a FTP products forum but with no success. Does anyone know of one?

Thanks to all for the help.

Harry
www.harrys-stuff.com
XT
xalinai_Two
Jun 13, 2004
On Sun, 13 Jun 2004 16:02:35 +0100, "Harry Marshall" wrote:

"Xalinai" wrote in message
On Sat, 12 Jun 2004 16:05:57 +0100, "Harry Marshall" wrote:
<snip>
That was my first thought. So I deliberately uploaded in binary, but it
made
no difference. The FTP is normally set to auto, and as it uploads other Jpegs and Gifs OK, I don’t think this is the problem.

Your description of filesize shrinking on upload and growing on download tells something different.

Michael

You were right. It was a Terrapin FTP problem. I found more Jpegs on my site that had 1 byte missing, even though they displayed OK.

As a test I downloaded a trial version of Cuteftp and re-uploaded the faulty Jpeg. It now is the same size on my hard disk and the server and displays OK.

I never had problems with Terrapin before, but the problem may have started when I upgraded from version 2.3.1 to 2.3.2.

I have looked for a FTP products forum but with no success. Does anyone know of one?

I still use a version 1.0 of FTP Explorer without any problems.

Even the ftp command on the windows command line works without (too many) problems and can be scripted.

Michael

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections