Jump to content

This topic is 7478 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I have a script step that exports the images from a container. Works great. The images go to my folder but then I use Applescript to rename the files. When renaming the files with As I append the extension so other apps can open them. I was appending ",jpg" but then all of the sudden ImageReadya dn preview said the file format was wrong so I did some testing and found they were now PICT files. I do not know why they decided to change the format. The container fields are stored in FMP. Is there a way to tell the format FMP will export?

Posted

If you are on [windows] ...there is a free utlity called "autoit"

http://www.hiddensoft.com/AutoIt/

However, there are requeriements:

-ANY verions of FM

-ANY version of Photoshop

You can "export" images and change('save as') them to any format you like....

let me know...

Take care!

  • 2 months later...
Posted

I see their ExportFM 7.

I will delve a little deeper and make sure this will do the trick...

This is what I need... "I have a different but similar inquiry... I am running FMPro7 on XP. I have a database that we have the images. Instead of saving all the images (DOH!)I have ~ 1500 images embedded as images in container fields. Now I can copy and paste into like Fireworks or something no problem. I am trying to export all the images... export them both as text (eg. productimage01.jpg) and to have Filemaker save the corresponding image file and in a certain specified folder (eg. images/productimage01.jpg)."

There's a plugin called ExportFM by New Millenium, which can export images in their original format. Currently it's only available for Filemaker 5 and 6, but the version for FM 7 is under work.

ExportFM 7 is Now Available!

ExportFM gives the developer full control over both container fields and external documents. With ExportFM, you can import and export images, sounds, movies, and text to/from documents in their native file formats. A full suite of image editing functions is included. For example, you can create and export thumbnails, web-ready images, or preview mode screen shots. In addition to editing, importing, and exporting the content that FileMaker stores directly in container fields, ExportFM handles all media types stored by reference.

With ExportFM, you can...

* Crop, resize, and rotate images (GIF, JPEG, PICT, BMP, TIFF, etc.)

* Change the bit-depth, quality and resolution of images

* Dynamically insert media directly or by reference

* Export container field content (stored or by reference) to an external document whose name and location you control

* Extract the filepath and name of images stored by reference

* Move, rename, copy, delete, and open a file

* Get a list of all files and subfolders in a folder

* Get the filetype of a file

Four Reasons to use ExportFM:

* Export FileMaker layouts in preview-mode exactly as they appear (with sub-summary parts, graphics, etc.) as an image file which can be attached to an email message or posted on a web site.

* Export text from text or calculation fields to a text file (as a ".txt" or ".htm" file, or whatever), setting the name and location based on field values or by script.

* Convert GIF, PICT, or BMP image types to JPEG with user specified parameters for size, bit depth, resolution, and quality -- enabling the creation of thumbnails suitable for web sites, or simply for the purpose of image manipulation.

* Create fast, dynamically generated web pages from your database with the click of a button! The pages are all in straight HTML so no special web server is required -- pages can be indexed by any search engine and bookmarked by users.

http://www.newmillennium.com/index.php?s...ftware_ExportFM

Posted

Have you actually used this?? This is kinda beyond my scope... as it seems to be a general WinApp.

AutoIt v3 is an opensource BASIC-like scripting language designed for automating the Windows GUI. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys).

AutoIt was initially designed for PC "roll out" situations to configure thousands of PCs, but with the arrival of v3 it is also well suited to performing home automation and the scripting of repetitive tasks.

If you are on [windows] ...there is a free utlity called "autoit"

http://www.hiddensoft.com/AutoIt/

However, there are requeriements:

-ANY verions of FM

-ANY version of Photoshop

You can "export" images and change('save as') them to any format you like....

let me know...

Take care!

Posted

What Export FM7 does is way more than I need. I don't need the thumbnails. I just need to take the image that is in the container field and export the file. Additionally... I want Filemaker to have a new field that has the image name... we went thru so much work to get to this stage... I can really really use some insight here. smile.gif

The Export FM 7 gives this... can't we just make our own script this way?

Export Graphic

==============

Essential Steps (Details):

1. Check for QuickTime.

Since the ConvertImage command is used in this script, we must first make sure that QuickTime 4.0 or greater is available. We do this by using the Export-CheckQT function within an If statement. If the response is not "1", then ConvertImage will not work.

If [External ("Export-CheckQT", "") <> 1]

2. Specify a location to save the exported graphics.

Set the desktop as the destination.

SetField ["Response Field", "External ("Export-SetDestinationFolder", ".D")"]

Create a new folder on the desktop. The new folder automatically becomes ExportFM's new destination folder.

SetField ["Response Field", "External ("Export-NewFolder", "Exported Graphics")"]

3. Copy the graphic image to the clipboard.

ExportFM can only work with images on the clipboard. Using the 'Copy' script step places the image on the clipboard.

Copy [select, "Export Container"]

4. Convert the PICT image to a JPEG.

The Export-ConvertImage function automatically changes the graphic format to JPEG. You must, however, specify the image's orginal format. In our example, the original image is PICT format. (ExportFM uses the code 'pct'.) For the full-sized image we don't want to change dimensions, so all other parameters are left blank.

SetField ["Response Field", "External("Export-ConvertImage", "pct|||||")"]

5. Export the full-sized JPEG.

The image is now in JPEG format on the clipboard, so we use Export-Export and set the second parameter to export the 'jpg' image. In our example, we have set the third parameter -- Creator Name -- to '****' on OS X, "ttxt" on OS 9, and blank "" on Windows.

SetField ["Response Field", "External("Export-Export", "Parrots.JPG|jpg|" & Case(

Status(CurrentPlatform) = -1, "****",

Status(CurrentPlatform) = 1, "ttxt"

))"]

6. Convert the image to a thumbnail.

The image has already been converted to JPEG format in Step 3, so we must now set the first parameter to 'jpg' (instead of 'pct').To shrink the image size, we simply reduce the vertical and horizontal dimensions (parameters two and three). In this example, we allow the user to manually enter the thumbnail dimensions into two fields named Vert and Horiz. We are not trying to adjust color bit depth, compression quality or resolution, so we are leaving the final few parameters blank.

SetField ["Response Field", "External("Export-ConvertImage", "jpg|" & Vert & "|" & Horiz & "|||")"]

7. Export the thumbnail image.

SetField ["Response Field", "External("Export-Export", "Parrots_Thumb.JPG|jpg|" &

Case(

Status(CurrentPlatform) = -1, "****",

Status(CurrentPlatform) = 1, "ttxt"

))"]

Posted

ok... i'll try this a different way...

I made a little script... basically it's;

BROWSE

GOTO IMAGE FIELD

COPY IMAGE

EXPORT

and then I have to type in a file name and it saves it as a PICT. It defaults to untitled.pct

It's tolerable, I suppose... but for 1500 records i'd rather now... and then I have to find a way to have Filemaker track these names it saves in a field...

I can't find a way to have it SAVE AS (name pulled from other field - like unique ID #... or calculated from model # or something) and as a jpeg...

THERE'S GOT TO BE A WAY.. so close...

and once this works I'll attempt the SELECT ALL RECORDS

This topic is 7478 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.