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). ------ |
|
| Login or register to post comments |

Posts: 5
<!-- 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.
Posts: 8187
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?
Posts: 5
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
Posts: 8187
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&name=phpBB_14&file=index&action=viewtopic&topic=4612&8
and this PHP bug: http://bugs.php.net/bug.php?id=19263
Posts: 5
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
Posts: 8187
Glad you got it working...
EDIT: I added FAQ C.20 on this issue, since a couple of people have had this issue...
Posts: 5
Great! Thanks!
Chris
Posts: 1
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?
Posts: 1
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?
Posts: 22
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
Posts: 3
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
Posts: 2
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?
Posts: 2
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
Posts: 2
Thanks for your help
Thanks
http://www.seopark.org