Try our conversational search powered by Generative AI!

Image

Vote:
 
Hi I have little question. Is there an easy/episerver -built in way of get the width and height of on image that exists in a virtual path? ( Im using, for example the property type : EPiServer.SpecializedProperties.PropertyImageUrl, but cant find any such data in this ). Thanx for any help
#15977
Jan 23, 2008 13:49
Vote:
 
Hi Richard! No, not as far as I know. You could store width and height as metadata attached to uploaded files: http://blog.fredrikhaglund.se/blog/2008/01/07/storing-metadata-attached-to-uploaded-files/ And here are some examples of how to open a file and read it into an image object so you can retreive the dimensions: http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/ Regards, Fredrik Haglund INEXOR AB - http://blog.fredrikhaglund.se
#16736
Jan 29, 2008 9:27
Vote:
 
Hi Richard! No, not as far as I know. You could store width and height as metadata attached to uploaded files: http://blog.fredrikhaglund.se/blog/2008/01/07/storing-metadata-attached-to-uploaded-files/ . And here are some examples of how to open a file and read it into an image object so you can retreive the dimensions: http://blog.fredrikhaglund.se/blog/2007/12/05/episerver-using-the-new-unified-file-system/ . Regards, Fredrik Haglund INEXOR AB - http://blog.fredrikhaglund.se
#16737
Jan 29, 2008 9:28
Vote:
 

I migrated a site from 4 to 5.61 and the images are no longer available on the site from the VPP.  Seems like there is some problem changing to a VPP from a Handler. Anyone out there able to confirm this ?

The images that were .../image/mypic.jpg in version 4 are now coming up as   ... /link/3f892da2.jpg

Cheers

#36551
Edited, Feb 02, 2010 17:39
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.