vi Posted June 21, 2008 Posted June 21, 2008 i have a container field that holds a JPG image (reference or actual import, does not matter to me). Is there any way to get the size of the image (e.g. 640x480) from that container field, or is there another way to approach it? thanks
mr_vodka Posted June 21, 2008 Posted June 21, 2008 GetValue ( GetAsText ( yourContainer ); 1 ) will give you the dimension when the image in referenced in a container.
vi Posted June 21, 2008 Author Posted June 21, 2008 ok so i created a calculation field with your calc in it - i tried the result as number, text and container and I always got this: image:/C:/Users/Admin/Desktop/photos/photos053.JPG not the size right now all my images in the containers are only referenced, but if i read your post correctly then that should work? right? thanks
mr_vodka Posted June 21, 2008 Posted June 21, 2008 You need to have used Insert Picture, not Insert File.
vi Posted June 21, 2008 Author Posted June 21, 2008 (edited) I tried it with one image, it still gives me the file name as a result, this time just without the path. The 'insert picture' would not work for me, since the images (10000+) are already in the database - got there via a folder import. I think I found a plugin - Troi File - I'll give it a try. Edited June 21, 2008 by Guest
mr_vodka Posted June 21, 2008 Posted June 21, 2008 Well reinserting them with Insert Image for 10K images wouldnt be that bad since you could write a loop to handle it. Again you need to Insert the image using 'Insert Picture' with the 'store only reference' box CHECKED.
mr_vodka Posted June 21, 2008 Posted June 21, 2008 BTW I am a big fan of Troi's plugins. However, in this case I dont really think that you need to use one.
vi Posted June 21, 2008 Author Posted June 21, 2008 OK - I got that working now thanks.... - size:1536,1009 the image size is 2048x1346... just wondering why it is off by a factor of 1.33333....?
Recommended Posts
This topic is 5999 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now