PDA

View Full Version : attachment image height en width


ageurtse
26 Dec 2009, 13:56
I would like to know how to get an attachments height and width. how could i do this.

for displaying the image i use



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



i put this in a cel from a table. but i would scale the longest size to fit in this cell so it attachment would display normal and not stretcht out.


i think i use


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



but how do i get this width and height

ageurtse
05 Jan 2010, 18:48
i have solved it myself, see the code below.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Budget101
09 Oct 2011, 20:53
Where did you plug this info into to get this to work? In a template, in the attachment.php file???