- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2015 09:47 PM
Hi guys,
Can I get image height/width from attachment table? Or is there any way to get that by server script?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2015 02:50 AM
Hi Kelvin,
Please add that image to "System UI -> Images" first
then you can get Height/Width.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2015 09:51 PM
Height and width are available in the image table: db_image table. Would that work for you?
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2015 09:58 PM
Or you can also use the solution shared here based on the bytes column available in the sys_attachment table
java - Extract image's width, height, color and type from byte array - Stack Overflow
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2015 09:59 PM
Thanks for you answer.
My specific problem is: I have a image field in my form. I upload the image for that field, it's stored in sys_attachment table but it doesn't exist in db_image table. So I still can't get the height or width.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2015 02:50 AM
Hi Kelvin,
Please add that image to "System UI -> Images" first
then you can get Height/Width.