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

Importing SVG as a linked image - not embedded

New Here ,
Oct 19, 2018 Oct 19, 2018

I am trying to import a svg, but don't want it to be embedded as a vector element - i need it to be a linked asset (placed in the image folder after publishing). Does anyone have any suggestions? Is this possible? —Max

693
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

correct answers 1 Correct answer

LEGEND , Oct 22, 2018 Oct 22, 2018

The Canvas library, CreateJS, does not directly support rendering SVGs. I suppose you could read in the SVG file and manually render it at runtime using the drawing commands, but that would be a rather advanced undertaking. Perhaps there's a more direct method of rendering SVG onto a canvas element in modern browsers, but it would have to be supported by all of them.

Translate
Adobe Employee ,
Oct 22, 2018 Oct 22, 2018

Have you tried importing your assets from the library?

Work with the libraries in Animate CC

Doesn't exactly work the way linked assets do, but is the closest that I can think of. You may also hear from experts here just in case my assumptions are incorrect.

Thanks,

Preran

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
New Here ,
Oct 22, 2018 Oct 22, 2018

Thanks - Check that link now.

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
LEGEND ,
Oct 22, 2018 Oct 22, 2018

AS3 or Canvas?

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
New Here ,
Oct 22, 2018 Oct 22, 2018

Animate CC 2018

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
LEGEND ,
Oct 22, 2018 Oct 22, 2018

maxp40317390  wrote

Animate CC 2018

. . .

(deep breath)

Yes, I know you're working in Animate. When you created the document you're working on now, did you click the "HTML5 Canvas" button, or the "ActionScript 3.0" button?

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
New Here ,
Oct 22, 2018 Oct 22, 2018

HTML5 Canvas

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
LEGEND ,
Oct 22, 2018 Oct 22, 2018
LATEST

The Canvas library, CreateJS, does not directly support rendering SVGs. I suppose you could read in the SVG file and manually render it at runtime using the drawing commands, but that would be a rather advanced undertaking. Perhaps there's a more direct method of rendering SVG onto a canvas element in modern browsers, but it would have to be supported by all of them.

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
New Here ,
Oct 22, 2018 Oct 22, 2018

After reading through as much links on Animate - all vector imported supports are placed and are not link as a external file. The image is placed into the library. But not packaged into the "image" folder once published.

The SVG, SWF & EPS images are the sharpest and smallest size (my SVG files are down to 2-3kb).

I am creating a series of HTML5 banners and need to switch headlines and offers on the fly.

ever looking for a solution.

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