6 Replies Latest reply on Apr 29, 2016 7:08 PM by nickega

    Export container field content as a .JPG

    ZoocMan85

      How do i export a file from a container field as a jpg file ?

        • 1. Re: Export container field content as a .JPG
          beverly

          Does this relate to your previous question posted here?

           

          Export Layout As HTML or Picture Runtime Solution

           

          beverly

          • 2. Re: Export container field content as a .JPG
            steveromig

            How do i export a file from a container field as a jpg file ?

             

            FileMaker Pro doesn't do graphic conversion.  In other words, if you import a PNG file into a container field, it is going to come out a PNG file.  You can't tell it to save it as a JPEG or other format.

             

            So the only way to get a JPEG out of a container field is to put on in there in the first place.

             

            Steve Romig

            FileMaker, Inc.

            • 3. Re: Export container field content as a .JPG
              beverly

              Steve, the suggestion on the other thread (related) was to use GetThumbnail. If I have a PDF in a container, the thumbnail becomes JPEG, correct? And would that work in Runtime (as was the previous question)?

               

              How does GetThumbnail work if the original image is .wmf?

              Thanks!

              • 4. Re: Export container field content as a .JPG
                steveromig

                Steve, the suggestion on the other thread (related) was to use GetThumbnail. If I have a PDF in a container, the thumbnail becomes JPEG, correct? And would that work in Runtime (as was the previous question)?

                 

                How does GetThumbnail work if the original image is .wmf?

                Thanks!

                 

                Here is what I did. 

                 

                I inserted a .wmf in a container field (Container1).  I created a calculation (Calculation1) with the following formula...


                GetThumbnail ( Field; 400; 400)

                 

                When I export the contents of Calculation1, it spits out a JPG on both Windows and OS X.

                 

                Steve Romig

                FileMaker, Inc.

                • 5. Re: Export container field content as a .JPG
                  ZoocMan85

                  I wrote a vbscript and did send event.  Here is my script

                   

                  Set oWordBasic = CreateObject("Word.Basic")

                      oWordBasic.SendKeys "{prtsc}"

                      oWordBasic.AppClose "Microsoft Word"

                      Set oWordBasic = Nothing

                      WScript.Sleep 2000

                      set WshShell = CreateObject("WScript.Shell")

                      WshShell.Run "mspaint"

                      WScript.Sleep 2000

                      set shl=createobject("shell.application") 

                      shl.MinimizeAll 

                      WScript.Sleep 1000

                      shl.UndoMinimizeAll

                      Set shl=Nothing

                      WScript.Sleep 1000

                      WshShell.AppActivate "untitled - Paint"

                      WScript.Sleep 1000

                      WshShell.SendKeys "^v"

                      WScript.Sleep 500

                      WshShell.SendKeys "^s"

                      WScript.Sleep 500

                      WshShell.SendKeys "C:\Your Folder Name Here\" & "daily log" & ".png"

                      WScript.Sleep 500

                      WshShell.SendKeys "{ENTER}"

                      WScript.Sleep 500

                      WshShell.SendKeys "{TAB}"

                      WScript.Sleep 500

                      WshShell.SendKeys "{ENTER}"

                      WScript.Sleep 500

                      WshShell.SendKeys "%{F4}"

                      Set WshShell=Nothing

                  • 6. Re: Export container field content as a .JPG
                    nickega

                    Yes, GetThumbnail produces a .jpg from a .wmf original, but it's a severely cropped (and useless) snip of the original, in my attempt to reproduce your result. I'd love to be corrected/proven wrong (PLEASE! Prove me wrong!).

                     

                    I've reported the limited usefulness of GetThumbnail directly to Filemaker, and only received the "it's working as designed" response. It's a feature that offers tremendous potential/promise, but just doesn't deliver.

                     

                    Mark D Kerr