1

I really need some professional help! :) I am having some problem with styling things inside DynamicModule. In this case I would like to eg. apply filters to the images that I get after running my code. I am using Qwant and I get images dynamically according to words that I have.

How could I apply filters to the images that I get?

  DynamicModule[{},
     Column[{

    ....

    dynamicWebImage[
     Dynamic[f],
     ImageSize -> 600,
     DynamicEvaluationTimeout -> Infinity]
    ....

    }]]

Details and background info: Dynamic WebImageSearch

Thank you very much!

Fanni

b3m2a1
  • 46,870
  • 3
  • 92
  • 239
csf
  • 55
  • 4

1 Answers1

2

In that answer you'll notice I defined the call like so:

dynamicWebImage[
  imgVar_Dynamic, 
  caching : True | False : True, 
  ops : OptionsPattern[Join[Options@DynamicModule, Options@Image]]
  ]

In the code I let whatever you supplied as the second argument to Dynamic operate on the Qwant results.

For instance;

a = "Sea Otter";
dynamicWebImage[Dynamic[a, ColorConvert[#["Image"], "Grayscale"] &]]

filtered

I believe this is what you mean by "applying filters". So hopefully that will get the job done.

b3m2a1
  • 46,870
  • 3
  • 92
  • 239