CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Photo distortion
Pages: [1]

Author Topic: Photo distortion  (Read 1096 times)

rww

  • Guest
Photo distortion
June 19, 2009, 09:29:26 am
I created a custom field on a registration profile that gets used as part of the Drupal registration process, and the photo uploads without a problem, however it's distorted. In other words, if the original photo is taller than it is wide, the width gets stretched so the person looks fatter. The photo must be square in order to not be distorted.

Also, the uploaded photo looks more grainy than the original or than the result if uploaded directly through Drupal's registration page. I'd like the photo to be available in the CiviCRM contact info, so I'd prefer to upload it as part of the CiviCRM registration profile.

Help will be appreciated.

helenbn

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 2
    • Pretty Good Designs
  • CiviCRM version: 4.5.x
  • CMS version: Joomla 2.5.x, 3.x
  • MySQL version: 5.x.x
  • PHP version: 5.x.x
Re: Photo distortion
June 19, 2009, 10:16:57 am
Try assigning width and height to the photo src code to match what the photo is. This will only work, however if all your photos are the same size to begin with.

A link would help if the site is uploaded.
Pretty Good Designs | http://prettygooddesigns.com | Hey, that's pretty good!

rww

  • Guest
Re: Photo distortion
June 19, 2009, 11:16:00 am
Thanks for the thought. Unfortunately, being that users will be uploading the photos upon registration, it's a sure bet they won't be the same size.

The site is still in development, so no live pages.

Thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Photo distortion
June 19, 2009, 12:44:41 pm

you will need to modify and fix the code for this one. We basically just scale all images to 100x100 which is an awful implementation. Ideally we should scale it down to the same ratio as the image size

if important to you consider contributing a patch and/or hiring a developer to make the needed fix

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Photo distortion
July 22, 2009, 04:50:09 am
Can someone just clarify how the photo upload is working? Others have it working - my quick trial failed. Created field - type = file. Added to a Profile used for Reg'n.

Fields is exposed in the profile with a Browse button = so looks good. Browse to a jpg, url shows in the field - click Save - field now shows as empty. Go to users record - nothing showing in the field.

Am I missing a folder somewhere that isn't triggering an error msg?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Photo distortion
July 22, 2009, 06:45:15 am

note that file uploads do not work on drupal registration / my account pages

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Photo distortion

This forum was archived on 2017-11-26.