Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webp support #1

Open
Deaquay opened this issue Sep 10, 2024 · 1 comment
Open

Webp support #1

Deaquay opened this issue Sep 10, 2024 · 1 comment

Comments

@Deaquay
Copy link

Deaquay commented Sep 10, 2024

Hi, i tried your app and to my dismay i realised it doesnt support reading generation data from webp files, even if it's there the same way as it is in png files.

Is there any way to add support for webp or mod some file to do it?

Also would be great to be able to add folders recursively. So one can just add txt2img-images and get pics from all the dated subfolders at the same time.

Cheers

@Deaquay
Copy link
Author

Deaquay commented Sep 10, 2024

I just went through build files and found this:

  var fileList = Directory(selectedDirectory)
      .listSync()
      .map((item) => item as File)
      .where((item) {
    if (item.path.endsWith(".png") ||
        item.path.endsWith(".jpg") ||
        item.path.endsWith(".jpeg")) {
      return true;
    }
    return false;
  }).toList();

Can i just add webp to the list and it should work? Also, saw it should recursively read from directories but it doesnt for me. I donwloaded compiled exe.

Removing paths should be added aswell.

Nice app anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant