images not showing for user profiles if GD lacks support for filetype

Bug #904882 reported by John Cameron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Melissa Draper

Bug Description

.JPG files will not upload for user profiles, yet it does work for content uploads. .PNG and .GIF are the only file types to work as profile pictures. This problem is occuring on the latest stable build of version 1.4 on a MYSQL database (LINUX). Tested with Firefox 8.0.

Tags: profileicon
Changed in mahara:
importance: Undecided → High
status: New → Triaged
milestone: none → 1.5.0
importance: High → Medium
tags: added: profileicon
Revision history for this message
Melissa Draper (melissa) wrote :

Hi John,

I'm not able to reproduce this issue, I could upload a jpg to my profile picture.

Are you able to provide us with any error messages given by Mahara, or jpg files that failed to upload?

You can send the failing files to us privately if they are not intended for general internet consumption. My email is my first name at the domain catalyst.net.nz.

Thanks,
Melissa.

Changed in mahara:
status: Triaged → Incomplete
Revision history for this message
John Cameron (jcameron-o) wrote : Re: [Bug 904882] Re: jpg not uploading for user profiles
  • pictures.zip Edit (511.1 KiB, application/x-zip-compressed; name="pictures.zip")

Hi Melissa,

I've noticed it happening with every jpg image I've tried so far,
ranging in sizes from 100x100 to 1024x768. I'm just not showing the file
as being uploaded, though no errors are being produced. The file quota
is even being adjusted, as if the upload worked. Afterwards, an entry is
added to the "Profile Pictures" page, except that instead of showing the
thumbnailed image, it shows the filename instead. Picking the jpg as
your default picture leaves your profile picture blank on the page, and
inserts the words "Profile image" under the "User Search" page results.
We have the site set up in a Mahoodle environment, which is probably why
"Profile Icon" is also appearing on the "Profile Pictures" page. Like
every other jpg, it's not displaying either. I'm including a screenshot
and a copy of the two sample images used during this test. I think that
you'll find there's nothing strange about them (except the expression on
G.W's face).

Any help you can provide for this would be greatly appreciated.

John

On 12/15/2011 8:34 PM, Melissa Draper wrote:
> Hi John,
>
> I'm not able to reproduce this issue, I could upload a jpg to my profile
> picture.
>
> Are you able to provide us with any error messages given by Mahara, or
> jpg files that failed to upload?
>
> You can send the failing files to us privately if they are not intended
> for general internet consumption. My email is my first name at the
> domain catalyst.net.nz.
>
> Thanks,
> Melissa.
>

--
*John Cameron*
Director of I.T.
Yorkville University

/For technical support, call 1-877-320-1220 or visit
our online helpdesk at http://helpdesk.yorkvilleu.ca//

Revision history for this message
John Cameron (jcameron-o) wrote : Re: jpg not uploading for user profiles

We found the source of our problem. It turned out that the PHP gd extension was compiled without JPG support, and not Mahara's fault at all. Please change the status of this bug report appropriately. Sorry for the trouble.

Revision history for this message
Melissa Draper (melissa) wrote :

Hi John,

I'm glad you've figured that out.

Perhaps we should be checking at some point that the GD plugin configuration is fully compatible with Mahara's needs.

Thanks,
Melissa.

Revision history for this message
Melissa Draper (melissa) wrote : Re: jpg not showing for user profiles if GD lacks support

I've submitted https://reviews.mahara.org/#change,942 to add some warnings for misconfigured GD libraries

Changed in mahara:
status: Incomplete → In Progress
assignee: nobody → Melissa Draper (melissa)
summary: - jpg not uploading for user profiles
+ jpg not showing for user profiles if GD lacks support
Melissa Draper (melissa)
summary: - jpg not showing for user profiles if GD lacks support
+ images not showing for user profiles if GD lacks support for filetype
Revision history for this message
Melissa Draper (melissa) wrote :
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/942
Committed: http://gitorious.org/mahara/mahara/commit/bdbc83f3beba77522888486ba6cea8192eab959d
Submitter: Francois Marier (<email address hidden>)
Branch: master

commit bdbc83f3beba77522888486ba6cea8192eab959d
Author: Melissa Draper <email address hidden>
Date: Mon Dec 19 11:16:01 2011 +1300

    Add warnings for incomplete GD lib compilations (bug #904882)

    Currently there's no warning if the PHP GD library has been
    compiled without one support for a file type. When a user attempts
    to upload an image of an unsupported type, it will fail.

    Change-Id: I682a39aeaba2d06494868210b9ef9d8f46f1b136
    Signed-off-by: Melissa Draper <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
Melissa Draper (melissa)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.