Forum

Thread tagged as: Problem

uploading image to assets results in a very dark image

Hi, I have a problem with images looking very dark after uploading them, like having a black overlay. I didn't face this problem locally so it is only happening on the live/staging server environment.

Here is the report i am getting from the live server:

Perch: 2.8.4, PHP: 5.5.6, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 40933630edef551dfaca71298a83fad8d03d62d4 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_forms (1.8.3), perch_backup (1.2)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/www/vhosts/livadirooms.gr/httpdocs/perch
PERCH_CORE: /var/www/vhosts/livadirooms.gr/httpdocs/perch/core
PERCH_RESFILEPATH: /var/www/vhosts/livadirooms.gr/httpdocs/assets/images
Image manipulation: GD
PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /var/www/vhosts/livadirooms.gr/httpdocs
HTTP_HOST: www.livadirooms.gr

The problem affects the resized images such as thumbnails (i.e img1-thumb@2x.jpg) and all other sizes which are created on the fly. The original image remains intact.

Spyros Perris

Spyros Perris 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The first thing to do is update Perch to the latest version and see if the problem still exists.

I have performed the update to the latest version but I am facing the same problem unfortunately.

Here is a link to a screenshot of the Assets in order to see how the images look: https://snpy.in/AoQvpp

Drew McLellan

Drew McLellan 2638 points
Perch Support

There was a bug in PHP's GD implementation that caused this, but I didn't think that applied to your version of PHP, only 5.5.9 and 5.5.10.

Were these images uploaded under this version of PHP?

I upgraded to PHP version 5.6.10 and problem is solved. Thanks a lot

5.5.6 was the PHP version they were uploaded