mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-05-21 10:54:55 +00:00
File cleanup in progress 2
This commit is contained in:
parent
47aa830771
commit
41667bff0a
10 changed files with 17 additions and 28 deletions
15
image.php
15
image.php
|
@ -284,19 +284,24 @@
|
|||
echo "<p>ID: ".$image['id']."</p>";
|
||||
|
||||
// File name
|
||||
echo "<p>File Name: ".$image['imagename']."</p>";
|
||||
if (strlen($image['imagename']) > 30) {
|
||||
echo "<p>File Name: ".trim(substr($image['imagename'], 0, 30))."...</p>";
|
||||
} else {
|
||||
echo "<p>File Name: ".$image['imagename']."</p>";
|
||||
}
|
||||
|
||||
// Image Upload date
|
||||
echo "<p>Last updated: ".$image['upload']." (+0)</p>";
|
||||
// File extention
|
||||
echo "<p>File Type: ".pathinfo($image['imagename'], PATHINFO_EXTENSION)."</p>";
|
||||
|
||||
// Image resolution
|
||||
list($width, $height) = getimagesize($image_path);
|
||||
echo "<p>Image resolution: ".$width."x".$height."</p>";
|
||||
|
||||
// Image Upload date
|
||||
echo "<p>Last updated: ".$image['upload']." (+0)</p>";
|
||||
|
||||
// Image download
|
||||
echo "<a class='btn alert-high space-top' href='images/".$image['imagename']."' download='".$image['imagename']."'><img class='svg' src='assets/icons/download.svg'>Download image</a>";
|
||||
|
||||
// Flyout test button
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue