Images get heavily distorted when I FTP *.gif files from Windows to Sun Solaris

Posted on 2004-10-25
Last Modified: 2013-12-25
We are migrating our application server from Window to Sun Solaris.  Whenever I FTP my image files for the website across, they get distorted.   It looks as if the image was squeezed vertically.  Has anyone ever encountered this?
Question by:ZeeshanSyedJC
    LVL 14

    Expert Comment

    FTP'ing the file shouldn't alter the image in any way ... is the HTML of the website declaring the height or width of any of the images?

    Author Comment

    It is actually distorting them because I also FTP them back to the Windos environment and get the same distorted appearance as the Sun box was displaying.   Here is the sequence of events I repeated.

    1. View *.gif images on windows - everything looks perfect
    2. FTP to Solaris and view them from web browser - Imaged is distorted at this point
    3. FTP from Solaris back to windows and view *.gif file - look exactly as it did from Solaris.
    LVL 14

    Expert Comment

    Really ...  that's crazy ... binary transfers and not ASCI? Is the file size changing at all?
    LVL 14

    Expert Comment

    What FTP program are you using?
    LVL 1

    Accepted Solution

    Make sure when you upload the images, you're transfering them via binary, not ASCII.

    Transfering via ASCII will cause your images to become distorted.  Most FTP programs come with an ASCII, Binary, and Auto option.  You should make sure Auto is selected.
    LVL 6

    Expert Comment

    even though its unlikely,  I think its probably happening,

    I suggest you zip your files or gzip them before sending.  that should protect the file headers.  see what happens.

    also the mozilla web browser can automatically unzip gzip files and show you their contents.

    so try zipping or stuffing them.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    About FreeBSD Jails In FreeBSD, jails are a way of doing operating system level virtualization.  The basis of FreeBSD jails is chroot (, which changes the root directory of processes.  As a…
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now