gmic-community icon indicating copy to clipboard operation
gmic-community copied to clipboard

Slight tweak from the data import filter

Open bauhaushousedog opened this issue 9 months ago • 0 comments

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]

bauhaushousedog avatar Apr 01 '25 23:04 bauhaushousedog