OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



how to change the size of profile image

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

how to change the size of profile image

Postby johnkperks » Sat Feb 04, 2012 4:34 am

We have participants who are not as web savvy as some of us using OCS are and therefore they find it very difficult to upload their images especially converting it to 150 x 150 pixels.

Is there a way to (a) increase the size limit lets say based on MBs rather than pixels and (b) add a plugin which converts this somewhat large image to regular size?
johnkperks
 
Posts: 14
Joined: Wed Nov 02, 2011 3:10 am

Re: how to change the size of profile image

Postby jmacgreg » Fri Feb 10, 2012 6:34 pm

Hi John,

Unfortunately there is currently no additional plugin that does what you want. If you have developers on hand, we're happy to provide some tips as to where to look in the code to start implementing that kind of functionality; and if there is interest in the community for this kind of feature, we're happy to add it as a feature request for future inclusion.

Cheers,
James
jmacgreg
 
Posts: 4162
Joined: Tue Feb 14, 2006 10:50 am

Re: how to change the size of profile image

Postby JasonNugent » Sun Feb 12, 2012 9:00 am

Hi everyone,

just to add on to what James has mentioned. The specifics of allowing an upload based on file size and then performing a resize is not difficult to code, but doing it outside of a plugin would add extra requirements to the PHP configuration in order for this functionality to occur. The imaging processing functions provided by PHP are not enabled by default, and the specifics of which image formats to allow for processing also depend on PHP being configured a certain way.

A plugin would be nice, although, OTOH, there are currently no hooks in that part of the code to make plugin integration at that point easy. Definitely worth future consideration though.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 790
Joined: Tue Jan 10, 2006 6:20 am


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 6 guests