/extremedating/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/extremedating/trunk

« back to all changes in this revision

Viewing changes to get_image.php

  • Committer: Gustav Hartvigsson
  • Date: 2013-04-15 22:24:25 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130415222425-lez45gq9v06tqfid
* Opitimised add user code
* images are no longer stored as base64 encoded strings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
  $fetch = $tuples->fetchAll();
199
199
  //var_dump($fetch);
200
200
  if(count($fetch) > 0 && $fetch[0]['profileImage'] != "" ) {
 
201
    $image_data = $fetch[0]['profileImage'];
201
202
    $image = new Imagick();
202
 
    $image->readImageBlob(base64_decode($fetch[0]['profileImage']));
 
203
    $image->readImageBlob($image_data);
203
204
    //var_dump($imageprops);
204
205
    //var_dump($image);
205
206
    $img = stupid_rescale_and_crop($image, 280, 280);