I am currently trying to determine if multiple image importers all using the same image file or one importer split up makes any difference. As far as I can tell the subsequent image importers are not loading the image so it isn't affecting the file size of the composition. Alternatively, I could use an image downloaded patch to grab the image where needed, storing it outside the comp.

Does anybody know if multiple image importers all referencing the same image store multiple copies in the composition?

I can't answer your question, but I find the following interesting:

1) Import an image in a composition and save it
2) Duplicate the Image Importer patch in the previous composition and save it

The file size for the compositions are almost the same, as Steven pointed out. Therefore, I'd say the image is referenced and only stored once.

3) Open both .qtz files in Property List Editor. You will see that all the information is there for both Image Importers, including the data for the image. 4) Save both files as XML files and compare their sizes: the XML file of the second composition is bigger than the XML file for the first one.

I don't really understand this, I always thought .qtz files are simply binary XML files. Is it possible to reference other tags in those? Why is the data for the image present only once in .qtz files but twice in .xml files?

Anyways, Quartz Composer seems to be smart enough to do the following:

5) Change the file extension of the composition containing two Image Importers saved as an XML file from step 4 from .xml to .qtz. This gives you a composition in plain text XML with the image data twice in it (i.e. it's the bigger file) 6) Open the composition in Quartz Composer again and save it to a different file. The resulting file has the size of the smaller one again.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to