Results 1 to 5 of 5
  1. #1
    Scalec is offline Novice
    Windows 10 Access 2013
    Join Date
    Nov 2015
    Posts
    4

    Attachment Images displaying Sideways


    Hello!

    When I am in the table for my form, I can click on the attachments for each record and they will display right side up. But when I go into the form, they are always displayed rotated to the left ninety degrees. I have manipulated the photos in the record to be rotated other ways, but the form images remain the same. Does anyone know a solution to this problem?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Can you provide the db or at least one of the photos for analysis and testing?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    leggs972 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2017
    Posts
    2
    Experiencing the same problem in Access 2010 64 bit. Created a form to display uploads from my cellphone, database tracking trucking load / delivery / unfortunate incident info, etc... Anyway, my Galaxy S6 takes images of 5321 x 2988 pixels; 16:9 ratio. That setting can be changed, but all the image options are relatively large. That particular image size translates into a 'print' size of 41.5" x 43.778". Kinda big, right?! I can upload the image in the form and it will display sideways. When I open the attachment, through the form, to manipulate it using Windows Photo Gallery, it opens oriented correctly as you've noted. If I then rotate it sideways and close the dialog it self saves, still displays incorrectly in the form. But, if I then re-open the attachment dialog and re-rotate the image to it's proper orientation, when the dialog closes the image will once again self save and display correctly in the form. Odd, at least to me. It seems that image size is somehow the issue. If I take an original image from my phone and shrink it to say 2" x 3", and then save it as an attachment, it displays correctly oriented in the form every time. This is a time waster! I'm a super novice db app creator, now searching for a way to programmatically convert the original images to a suitable size as they are uploaded into the db as an attachment. I've searched the vba object browser but don't see anything obviously useful. Looking for some magic guys.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    So need VBA to open the image in some application object, like VBA opening an Excel object and manipulating worksheets. Unfortunately, as leggs972 notes, there does not seem to be any object library for this functionality. Not even for MS Picture Manager or MS Paint, neither of which is packaged with VBA. And Picture Manager is not supported in Office2013 and later.

    The only image manipulator library I can see is for Adobe Acrobat.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    leggs972 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2017
    Posts
    2
    Score! Haven't tried it yet, but sounds perfect https://www.devhut.net/2017/01/23/vba-manipulate-images-resize-convert-and-more/

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 01-07-2013, 05:23 AM
  2. Replies: 1
    Last Post: 10-05-2012, 08:28 PM
  3. Displaying bound images in a form
    By munroe47 in forum Forms
    Replies: 5
    Last Post: 07-10-2012, 06:18 PM
  4. Replies: 1
    Last Post: 02-13-2012, 06:18 AM
  5. Displaying images from another folder
    By w3leon in forum Access
    Replies: 0
    Last Post: 01-30-2009, 06:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums