src/libraries/controllers/ApiPhotoController.php
/**
    * Transform a photo.
    * Modifies a photo by rotating/BW/etc.
    *
    * @param $id string ID of the photo to transform
    * @return string standard json envelope
    */
Transform a photo.
Modifies a photo by rotating/BW/etc.

@param $id string ID of the photo to transform
@return string standard json envelope
Transform a photo . Modifies a photo by rotating / BW / etc . @param $id string ID of the photo to transform @return string standard json envelope
public function transform($id)
  {
    getAuthentication()->requireAuthentication();
    getAuthentication()->requireCrumb();
    $res = $this->photo->transform($id, $_POST);
    if(!$res)
      return $this->error('Could not transform the photo', false);
    return $this->success('Successfully transformed the photo', true);
  }
public function transform ( $ id ) { getAuthentication ( ) -> requireAuthentication ( ) ; getAuthentication ( ) -> requireCrumb ( ) ; $ res = $ this -> photo -> transform ( $ id , $ _POST ) ; if ( ! $ res ) return $ this -> error ( 'Could not transform the photo' , false ) ; return $ this -> success ( 'Successfully transformed the photo' , true ) ; }
Transform a photo.
Transform a photo .