Skip to content

Extract Image: Expose Options for different extension #133

Description

@moonyuet

Is your feature request related to a problem? Please describe.
The current image extractor does not support to configure parameters from options prior to exporting the image. Those parameters are hard-coded and users cannot customize their preferences on "what to export" with that image extensions as they choose them as extensions to be exported for images.

Describe the solution you'd like
I can imagine we can have the settings exposed by extensions introduced in ExtractImage. In the codebase, we can access the settings by extension names, I remember we already use the dictionary or similar to store the relevant data. The pseudo code below can be taken as reference. We need to use JSON.parse to ensure the dictionary data is converted to be readable from javascript.

extract_image_settings = project_settings["photoshop"]["publish"]["ExtractImage"]
extensions = extract_image_settings["formats"]
for extension in extensions:
      options_settings = extract_image_settings[extensions]
      ws_stub.saveAs(outputPath, extension, as_copy, save_option)
      

Describe alternatives you've considered
Nothing for now

Additional context
N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementImprovement of existing functionality or minor addition

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions