Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image uploading butchering images

Status
Not open for further replies.

pgosse

Programmer
Sep 26, 2001
42
CA
Hi all. I'm using a wysiwyg editor we purchased which has an image uploader, and for some reason whenever I upload images they're getting butchered during the upload.

The strange thing is when I upload the images to the demo version of the editor on the company's website from which we purchased it, it works fine.

Here are samples of the images to show what I mean. The images on the left are the images I uploaded via the editor's image manager on the company's demo website, the images on the right are images uploaded via the editor's image manager on my development site.

1.gif
1_uploaded.gif

gordon_leekha_caption.gif
gordon_leekha_caption_uploaded.gif

nav-02.jpg
nav-02_uploaded.jpg

news-head-2.gif
news-head-2_uploaded.gif

title.gif
title_uploaded.gif


Since it works fine on theirs, but the images get garbled on mine, I'm figuring it's probably some setting in php.ini or http.conf, but I can't say for sure.

Does anyone have any ideas where I might begin to look to find the cause for this?

Thanks in advance,

Pablo.
 
Hi there. Thanks for the tip. However post_max_size is 8M and upload_max_filesize is 2M so that's not the problem.

It appears they're being uploaded in ASCII format instead of Binary, as when I download one of the garbled images it won't open in photoshop.

However, I can't seem to find anything that can control ascii or binary uploads in either the httpd.conf or php.ini files, and there is no mention of it made in the editor's setup guides.

I'm using DevEdit ( as my editor, and when I uploaded the images through the demos on their site they work fine. The images which appear correctly in my previous post are the actual ones I uploaded to their servers.

Also, the server in question is running on a Dell Dimension Desktop with Redhat 9.0, Apache 2.0 and PHP 4.2.2.

Any other ideas?

Thanks again.

Cheers,
Pablo
 
Hmmm, interesting question. The editor is actually browser-based (it requires IE 5.5+), so I'll have to create my own upload form in order to see if that might be the problem.

I'll give it a try when I get in to the office and let you know if it works.

Cheers,
Pablo
 
If you've purchased a product why aren't they providing the support?

MrBelfry
 
I have opened a support ticket with them, and they're looking into it, but this is the first time they've come across this problem, so aside from them looking into it I'm trying to solve it myself.

The thing is, there is no setting anywhere in the editor which allows you to switch between binary and ascii uploads. I tested it on their server, and it uploads as binary, and when I set it up under a php/windows setup on my localhost it worked fine as well.

It's just when I have it set up under my desktop with RedHat 9.0, Apache 2.0 and PHP 4.2.2 that it's uploading as binary.

The one thing they thought it might be, which Slepnir214 mentioned above, is the upload_max_filesize setting, but that's not it.

It seems like it's some obscure server setting perhaps, so I'm going to try posting to a few linux forums as well.

This is very strange, and has me completely stumped.

Cheers,
P.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top