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
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.
Describe alternatives you've considered
Nothing for now
Additional context
N/A