Skip to content

Slight tweak from the data import filter #288

@bauhaushousedog

Description

@bauhaushousedog

the stock data import filter does its job, although, it creates a huge column of pixels that makes it really difficult to work with on an editor like krita, ive made a quick patch so it makes it into square image so it's easier to use.

#@gui Raw data to IMAGE: raw_data_to_image, raw_data_to_image
#@gui : sep = separator()
#@gui : note = note("adapted from the 'Import Data' filter by David Tschumperlé")
#@gui : Filename=filein()
#@gui : Normalize=bool(1)
raw_data_to_image :
  -fx_import_image "$1",$2
  -input {round(sqrt(h),1,1)},{round(sqrt(h),1,1)} \
     fill. [0]
  -remove[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions