ZenphotoCMS Forum
Display size and resolution of the full image. - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Display size and resolution of the full image. (/thread-9293.html)



Display size and resolution of the full image. - dmitrij - 2011-11-21

Hello! I do not know very well the php ...
What code should be added to image.php to display the resolution and size (height and width, size in kilobytes or megabytes) of the large (original, full) image?
For example, it works in the admin panel - displays: Dimensions, Size.




Display size and resolution of the full image. - sbillard - 2011-11-21

I suggest you explore the admin panel code and see how it does this. You can then copy what it does. Generally programming is mostly about finding code somewhere that does mostly what you want and adapting it to your needs.

So, for instance, if you do a search of the source for "Dimensions:" {the source code is in English} you will find the line in admin-edit.php that displays the height and width. Below that line is the code for the size.




Display size and resolution of the full image. - Sean - 2011-11-21

Here is the code I have for showing image dimensions.

'

                " title="">
                    px

'




Display size and resolution of the full image. - dmitrij - 2011-11-21

Good! I hope that happens.)))




Display size and resolution of the full image. - dmitrij - 2011-11-22

Thank you very much, Sean!!!