Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Currently the Image Media Type can get the width, height, size and type of file uploaded.Using umbracoWidth, umbracoHeight, umbracoBytes and umbracoExtension.
Is it possible to extend this further to get the following information from the image:
Can anybody suggest a method of achieving this?
Cheers,JV
Create a class that inherits from ApplicationBase.
In the constructor, you can attach to the Media Create event and get a handle on the file via the umbracoFile property. (using Server.MapPath)
From there you can get what you want from the image
Take a look at the PhotoMetaData package by Sebastiaan Janssen:
http://our.umbraco.org/projects/website-utilities/cultiv-photometadata
It should do what you are looking for.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get more image file infomation on upload?
Currently the Image Media Type can get the width, height, size and type of file uploaded.
Using umbracoWidth, umbracoHeight, umbracoBytes and umbracoExtension.
Is it possible to extend this further to get the following information from the image:
Can anybody suggest a method of achieving this?
Cheers,
JV
Create a class that inherits from ApplicationBase.
In the constructor, you can attach to the Media Create event and get a handle on the file via the umbracoFile property. (using Server.MapPath)
From there you can get what you want from the image
Take a look at the PhotoMetaData package by Sebastiaan Janssen:
http://our.umbraco.org/projects/website-utilities/cultiv-photometadata
It should do what you are looking for.
is working on a reply...