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

A few questions around API for creating editor instance

Community Beginner ,
Feb 17, 2025 Feb 17, 2025

1. Is it possible to set output asset size for `editor.create()`? I see there is a type like `OutputAsset`, but cannot see where is it used? In general I gotta confess that it's very hard to navigate trought the API documentation, since some types are missed, sometimes I see some parameteres, and later on I can land on a similar page with types for it without it.

2. Is is possible to set the backgaound transparency so it initially starts with it?

3. Can I set filters just like I set search query ?

TOPICS
Embed SDK , User Interface
610
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

Adobe Employee , Feb 21, 2025 Feb 21, 2025

Hi there,

 

  1. You can set the initial canvas size, using canvasSize as a property for the createDocConfig object in the editor.create() workflow. The OutputAsset you mention is used in the EditorPublishParams, that are passed to the PublishCallback(), for the onPublish callback, that you set in the callbacks property of the BaseEditorAppConfig in the editor.create() workflow.
  2.  Not that I know, I'm afraid.
  3.  See 2 🙂 

    Hope this helps!
    Some type aliases are not helpful, we know. Please look at Shared
...
Translate
Adobe Employee ,
Feb 21, 2025 Feb 21, 2025

Hi there,

 

  1. You can set the initial canvas size, using canvasSize as a property for the createDocConfig object in the editor.create() workflow. The OutputAsset you mention is used in the EditorPublishParams, that are passed to the PublishCallback(), for the onPublish callback, that you set in the callbacks property of the BaseEditorAppConfig in the editor.create() workflow.
  2.  Not that I know, I'm afraid.
  3.  See 2 🙂 

    Hope this helps!
    Some type aliases are not helpful, we know. Please look at Shared > Types, you'll likely find more useful pages there.


 

Davide Barranca | Sr. Developer Relations Engineer @Adobe
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
Community Beginner ,
Feb 25, 2025 Feb 25, 2025

 

Hi there,

 

Thank you for your response and clarifications.

 

I would like to emphasize that background transparency is a crucial feature for us. We’re planning to ship the SDK to thousands of creators who will be designing their own ready-to-print artworks. While we can currently control the resolution via the canvas size (which works well for now), having a backgroundless canvas from the start is essential.

 

I understand that this can be done via the UI in the short term, which is fine. However, looking ahead, we anticipate that this might lead to incorrect prints, especially on white blanks. From my perspective, implementing this feature doesn’t seem overly complex (please correct me if I’m wrong), and I would greatly appreciate it if this could be considered for the feature backlog.

 

Thank you again for your support!

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
Adobe Employee ,
Feb 26, 2025 Feb 26, 2025

Hi,

I've logged this as a feature request for Product/Engineering review. Thanks for calling this out and providing context!

 

 

Davide Barranca | Sr. Developer Relations Engineer @Adobe
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
Community Beginner ,
Feb 26, 2025 Feb 26, 2025
LATEST

@Barranca 

Thank you for your response. I have one last question for clarification.

 

Based on point 1, am I correct in understanding that it’s not possible to rescale the image using the publish parameters? I’m already setting the canvas size, which works initially. However, every time I switch to a template (even a free one), the output resolution becomes unacceptably low and doesn’t meet any print quality standards.

 

I assume this might be due to the premium rescale feature. I just wanted to confirm:

•Is it indeed not possible to rescale via publish parameters?

•If not, is this something you’re considering for future development?

 

Thank you again for your support and clarification.

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