Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

reading the xmp in a jpeg

Explorer ,
Feb 10, 2011 Feb 10, 2011

So I want to do something very simple

I load a jpeg into a bitmapdata instance

somewhere in the jpeg is an embedded xmp packet with useful info like image title, caption, copyright info etc...

how to read the xmp data from inside a bitmapdata instance???

I have found the xmp library for actionsscript but it is absolutely no help

I create actionscript by just creating as3 files in flash and attach my main class to my (empty)  .fla file  I do NOT use the IDE, FLEX, Flash builder or anything fancy. These are pure custom as3 classes everything is created from code

thanks

Chris

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 10, 2011 Feb 10, 2011

I believe you are wrong. The xmp-Library will definitively do what you need. From the programmer`s guide: "The ActionScript XMP Library is intended to be used with Adobe Flash and Flex technology, to read, modify and create XMP packets in the RDF/XML format." It´s for Flash, too and there is even a compiled swc you can easily add to your project. "The library is deployed as a compiled Flash library (SWC), XMPCore.swc, which you can add to Flex projects
and Flash Authoring projects."

http://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/ActionScriptAccessToXMP.pdf

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 10, 2011 Feb 10, 2011

Thanks for your reply. I really do hope you are correct.

That is the document I was looking at. Many code fragments. No example. And where exactly do you find the xmpcore.swc? I have tried searching adobe, google, my mac all I do is go round in circles back to the same cryptic set of documents.

How to include in an AS3 file? there is an example for Flex but not for a simple AS3 file

my AS3 file would be something like

package

{

import flash.display.Sprite;

import flash.display.Stage;

import flash.events.*;

import flash.text.*;

import flash.events.TimerEvent;

import flash.utils.Timer;

public class CSGFcode extends Sprite

{

public var somevar:String

public function CSGFcode():void

{

//code here where I load an image file, put it into a bitmapdata instance, put that in an bitmap and do an addchild to display the image

}

do I use an import statement? Do I have to make sure this swc file is in a particular folder???

I dont need to be spoon fed but the documentation could be a little clearer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 11, 2011 Feb 11, 2011
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines