<a href="#" class="toggle_info">More transformations...</a> </div> <div class="more_info"> <a href="#" class="toggle_info">Hide transformations...</a> <table class="thumbnails"> <?php $thumbs = array(array("crop" => "fill", "radius" => 10), array("crop" => "scale"), array("crop" => "fit", "format" => "png"), array("crop" => "thumb", "gravity" => "face"), array("override" => true, "format" => "png", "angle" => 20, "transformation" => array("crop" => "fill", "gravity" => "north", "width" => 150, "height" => 150, "effect" => "sepia"))); foreach ($thumbs as $params) { $merged_params = array_merge(\Cloudinary::option_consume($params, "override") ? array() : $thumbs_params, $params); echo "<td>"; echo "<div class='thumbnail_holder'>"; echo "<a target='_blank' href='" . cloudinary_url($photo["public_id"], $merged_params) . "'>" . cl_image_tag($photo["public_id"], $merged_params) . "</a>"; echo "</div>"; echo "<br/>"; \PhotoAlbum\array_to_table($merged_params); echo "</td>"; } ?> </table> <div class="note"> Take a look at our documentation of <a href="http://cloudinary.com/documentation/image_transformations" target="_blank">Image Transformations</a> for a full list of supported transformations. </div> </div> </div> <?php $index++; } ?>
$files = $_FILES["files"]; $files = is_array($files) ? $files : array($files); $files_data = array(); foreach ($files["tmp_name"] as $index => $value) { array_push($files_data, create_photo($value, $files["name"][$index])); } ?> <html> <head> <link href="style.css" media="all" rel="stylesheet"/> <title>Upload succeeded!</title> </head> <body> <h1>Your photo has been uploaded sucessfully!</h1> <h2>Upload details:</h2> <?php foreach ($files_data as $file_data) { \PhotoAlbum\array_to_table($file_data); } ?> <br/> <?php echo cl_image_tag($file_data['public_id'], array_merge($thumbs_params, array("crop" => "fill"))); ?> <a href="list.php" class="back_link">Back to list...</a> </body> </html>