-
-
Save yamilethmedina/459cb460881198267d79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'plugins/lib/WideImage.php'; | |
require 'plugins/lib/Operation/ExifOrient.php'; | |
date_default_timezone_set('America/New_York'); | |
// Vars to hold user inputs | |
$name = ""; | |
$speaks = ""; | |
// Error Vars | |
$formError = ""; | |
// Directories & file paths | |
$userFolderPath = ""; | |
$userImagePath = ""; | |
$userImagePathRelativeToPluginFolder = ""; | |
$newImagePath = null; | |
$exif = exif_read_data($userImagePath); | |
$image = WideImage::load($userImagePath); | |
| |
$transformation = new WideImage_Operation_ExifOrient(); | |
$transformation->execute($image, $exif['Orientation']); | |
$image->saveToFile($imageWithText); | |
| |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment