uploads are skewed.

deviros

Joined: 2003-03-16
Posts: 5
Posted: Sun, 2003-03-16 01:10

when I upload pics to my gallery website, the pics come out all skewed... kind of like a picasso painting.

<!-- BBCode Start --><IMG SRC="http://www.amnesia.org/~johnson/albums/albun40/FILE0000.thumb.jpg"><!-- BBCode End -->

This was occuring with the old version of gallery too (1.2.5).

------
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.amnesia.org/~johnson/gallery
Gallery version: gallery-1.3.3
Apache version: httpd-2.0.40-11
PHP version (don't just say PHP 4, please): php-4.2.2-8.0.7
Operating system: linux (redhat)
Web browser/version (if applicable): mozilla 1.3b

Login or register to post comments
deviros

Joined: 2003-03-16
Posts: 5
Posted: Sun, 2003-03-16 01:11

<!-- BBCode Start --><A HREF="http://www.amnesia.org/~johnson/gallery/albun40" TARGET="_blank">www.amnesia.org/~johnson/gallery/albun40</A><!-- BBCode End -->

is an example of a folder full of the skewed photos... doesn't matter if I use netpbm or imagemagick.

Login or register to post comments
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8187
Posted: Sun, 2003-03-16 02:08

It could be a problem with the original images, however, both ImageMagick and NetPBM produces the results, it's doubtful.

It could also be PHP, but that's kind of doubtful too.

Try uploading an image that isn't from a digital camera (download an image off the net or something). Is that image skewed?

Login or register to post comments
deviros

Joined: 2003-03-16
Posts: 5
Posted: Sun, 2003-03-16 07:01

Thanks for responding to this. I've uploaded another pic, it's from the front page of cnn.com, here's the unadulterated one:

<!-- BBCode Start --><IMG SRC="http://www.amnesia.org/~johnson/txtop.pro.rally.ap.jpg"><!-- BBCode End -->

Here's what it looks like when uploaded (via gallery remote latest):

<!-- BBCode Start --><IMG SRC="http://www.amnesia.org/~johnson/albums/albun40/txtop_pro_rally_ap.jpg"><!-- BBCode End -->

And here's what it looks like when I go and add the pic via the "add photos" option in gallery itself:

<!-- BBCode Start --><IMG SRC="http://www.amnesia.org/~johnson/albums/albun40/txtop_pro_rally_ap_002.jpg"><!-- BBCode End -->

So, it too is skewed... and it doesn't matter if it's done via the gallery client or gallery itself.

This has been going on for quite some time now, I don't know which versions of each it started at, but it's been a long time... The one place that I get a gut feeling about it happening is with apache, as that's appearing to be the only common thread... possibly something up with the post size or something?

Chris

Quote:
It could be a problem with the original images, however, both ImageMagick and NetPBM produces the results, it's doubtful.

It could also be PHP, but that's kind of doubtful too.

Try uploading an image that isn't from a digital camera (download an image off the net or something). Is that image skewed?

Login or register to post comments
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8187
Posted: Sun, 2003-03-16 16:24

I think this may have something to do with RedHat's installation of PHP and Apache (not latest versions).

See this thread: http://gallery.menalto.com/modules.php?op=modload&amp;name=phpBB_14&amp;file=index&amp;action=viewtopic&amp;topic=4612&amp;8
and this PHP bug: http://bugs.php.net/bug.php?id=19263

Login or register to post comments
deviros

Joined: 2003-03-16
Posts: 5
Posted: Sun, 2003-03-16 17:21

Hey thanks!

That worked like a champ! I commented out:

<Files *.php>
# commented out these three lines for gallery testing
# SetOutputFilter PHP
# SetInputFilter PHP
# LimitRequestBody 524288
</Files>

in my /etc/httpd/conf.d/php.conf file.

Thanks!

Chris

Quote:
I think this may have something to do with RedHat's installation of PHP and Apache (not latest versions).

See this thread: http://gallery.menalto.com/modules.php?op=modload&amp;name=phpBB_14&amp;file=index&amp;action=viewtopic&amp;topic=4612&amp;8
and this PHP bug: http://bugs.php.net/bug.php?id=19263</BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->

Login or register to post comments
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8187
Posted: Sun, 2003-03-16 17:22

Glad you got it working...

EDIT: I added FAQ C.20 on this issue, since a couple of people have had this issue...

Login or register to post comments
deviros

Joined: 2003-03-16
Posts: 5
Posted: Sun, 2003-03-16 17:41

Great! Thanks!

Chris

Login or register to post comments
mpburton

Joined: 2003-07-28
Posts: 1
Posted: Mon, 2003-07-28 18:38

I'm running Gallery v1.2.5-debian7.woody.0 with php4 and am having the same issue - images are pretty messed up with the exact type of skewing. Unfortunatly, I don't have the php.conf file on the debian build - though there is a php.ini under /etc/php4/apache...

System Kernal: Debian 2.4.18-686
Server version: Apache/1.3.26 (Unix) Debian GNU/Linux
Gallery version: v1.2.5-debian7.woody.0
PHP Version: 4.1.2-6woody3

The problem with debian is of course a desire to keep versions with the debian package... Thoughts?

Login or register to post comments
rozdog

Joined: 2004-01-31
Posts: 1
Posted: Sat, 2004-01-31 18:03

I am running:

apache2-2.0.48-9
mod_php4-4.3.3-5
suse 9.0

and also having the problem listed above (generated thumbnails for uploads appear blocky). Although I do not seem to have a php.conf file (find / | grep php.conf returns nothing). I do have an /etc/apache2/conf.d/mod_php4.conf file which looks like this:

<IfModule sapi_apache2.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
</IfModule>

This is all that is in the file.. Is this the file that I should be editing? If so, how do I edit it to get gallery to work properly? If not, which file should I be editing?

Login or register to post comments
williec30

Joined: 2004-02-03
Posts: 22
Posted: Tue, 2004-02-03 02:57

this too is happening on my system. i do not have the *.php variables in two places within my Apache 2.0 configuration. i also have the current version of PHP installed on my mandrake 9.2 box.

any help would be greatly appreciated.FAQ Gallery:c.20

Login or register to post comments
mdella

Joined: 2003-08-01
Posts: 3
Posted: Tue, 2004-03-09 18:24

Ok, I have the same problem as stated above. I've done quite a bit of work trying to track it down and discovered that for some reason the entire image does not get uploaded (which creates all the split image problems, etc.)

For instance, I have a JPG file that is 58192 bytes. After uploading (and watching the temporary directory) only 30715 bytes are uploaded causing a "busted" JPG. Everything screws up after that point...

I am running the following software:

Gallery 1.4.2
PHP/4.3.5RC3
Apache/2.0.48
mod_perl/1.99_13
open_ssl/0.9.7c
Perl/5.8.0

Solaris 8 and 9 (multi-tiered system. Web server is 2.8)

So... is this something in how PHP does the upload and file termination? Does it not write the EOF correctly during uploads?

More info....

In httpd.conf:
LoadModule php4_module modules/libphp4.so

# Allow for PHP server calls
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps

Login or register to post comments
chambers

Joined: 2004-10-12
Posts: 2
Posted: Tue, 2004-10-12 18:54

I too am having this problem! Mangled looking uploaded images on my brand new Fedora Core 2 install.

PHP: 4.3.9 (latest version)
Apache2: 2.0.51

Some images work okay, most have huge blocky color areas. See

http://216.99.218.81/gallery/

for an example of screwed up vs. not screwed up.

Any advice?

Login or register to post comments
chambers

Joined: 2004-10-12
Posts: 2
Posted: Wed, 2004-10-13 21:34

I managed to fix my problem by downgrading to Apache 1.3.

No combination of versions of Apache2 and PHP worked for me without mangling the images.

FAQ Gallery:c.21

Login or register to post comments
m4usay

Joined: 2005-07-12
Posts: 2
Posted: Tue, 2005-07-12 12:35
deviros wrote:
<!-- BBCode Start --><A HREF="http://www.amnesia.org/~johnson/gallery/albun40" TARGET="_blank">www.amnesia.org/~johnson/gallery/albun40</A><!-- BBCode End -->

is an example of a folder full of the skewed photos... doesn't matter if I use netpbm or imagemagick.

Thanks for your help

Thanks
http://www.seopark.org

Login or register to post comments