Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1667 from alexispeter/image-exif-resize
Browse files Browse the repository at this point in the history
Extract image-manipulation from CM_File_Image
  • Loading branch information
alexispeter committed Jul 17, 2015
2 parents 218b66f + 33b34c9 commit f27a657
Show file tree
Hide file tree
Showing 8 changed files with 799 additions and 774 deletions.
363 changes: 0 additions & 363 deletions library/CM/File/Image.php

This file was deleted.

4 changes: 2 additions & 2 deletions library/CM/FormField/FileImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ public function validateFile(CM_File $file) {
parent::validateFile($file);

try {
$image = new CM_File_Image($file);
$image->validateImage();
$image = new CM_Image_Image($file->read());
$image->validate();
} catch (CM_Exception $e) {
throw new CM_Exception_FormFieldValidation('Invalid image');
}
Expand Down
Loading

0 comments on commit f27a657

Please sign in to comment.