Member
Member
dmitrij   2011-11-21, 00:43
#1

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.

Member
Member
sbillard   2011-11-21, 01:09
#2

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.

Member
Member
Sean   2011-11-21, 01:16
#3

Here is the code I have for showing image dimensions.

'

                " title="">
                    px

'

Member
Member
dmitrij   2011-11-21, 05:01
#4

Good! I hope that happens.)))

Member
Member
dmitrij   2011-11-22, 23:04
#5

Thank you very much, Sean!!!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.