Jump to content

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

Recommended Posts

Posted

I've always noticed that FileMaker can't export graphics in containers as accurately (color wise) as the graphic was put into the container. It can display them on-screen correctly but when it comes to printing a graphic or referencing it on a web page with CDML, it gets greyed. FileMaker cannot maintain true white.

I believe that FileMaker exports all graphics as JPG and I know that JPG is a compressed format and a little quality is going to be lost for the sake of a smaller file. But, FileMaker (v4.1) should be able to maintain the color of an image.

Anyone have any experience or ideas about this? How can I get FileMaker to give me back a clean image?

  • 1 year later...
  • Newbies
Posted

Ya I realized that issue too, I know why but I didn't know how to solve it...I'm looking for the solution as well. tongue.gif

when you store a picture as an actual image (not store only the reference) into the FM database it's pure white otherwise it's greyed, I guess it's because FM can't handle or process different palettes of different picture files, try to check/uncheck the option "Store only a reference" when you Insert the picture and you'll see the difference...

If anyone knows the solution please let us know, appreciated! confused.gifconfused.gifconfused.gif

Kevin Hu

[email protected]

  • Newbies
Posted

Hello Ni hao,

cool.gifI think I found a way to do that:cool.gif

1) create a button in FMPRO with the title "Choose ..." and bundle with a script which can execute the following AppleScript:

set fileList to (choose file with prompt "Locate your pic file..." of type {"PNTG", "PICT", "EPSF", "TIFF", "JPEG", "GIFf"})

set pictureFileRef to the result as string

set cell "fullpath" of current record to pictureFileRef as string

set cell "img" of current record to file (pictureFileRef)

set oldDelim to AppleScript's text item delimiters

set AppleScript's text item delimiters to ":"

set pictureFileName to (text item -1 of pictureFileRef) as string

set AppleScript's text item delimiters to oldDelim

set cell "filename" of current record to pictureFileName as string

// note: fullpath, filename, img (container) are your fields name in FM DB.

// and that way is "storing only the reference" of a picture file...

2) when you reference that picture don't use [FMP-Image:xxx], instead of that, use the link like following:

<IMG SRC="images/productpic/[FMP-Field: filename]">

then you'll skip the Filemaker container bug and normally you can see a PURE WHITE background of your picture in the web page!

Try and enjoy, please keep me informed.

[color:"blue"] (if anyone want a sample file, please drop me a line...)

Kevin Hu

[email protected]

  • 2 weeks later...
Posted

There are a lot of reasons to not serve images to a browser from FMPro. And there are ways to serve those graphics from FMPro to the browser. I don't know if you folks ever look at all the stuff available on these forums but spending time looking around can be useful. There is a Sample Files forum with this thread (web publishing, the fmp-includefield tag & images) which I found useful.

Good luck with your projects.

This topic is 8016 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.