Knowledge is the Only Good
  • About

MJ Images

meta
Retrieving and processing Midjourney images.
Author

Stephen J. Mildenhall

Published

2024-03-20

I enjoy “painting” with Midjourney—it get’s me around my technical shortcomings as an artist! The Discord app and MJ front-end does not have a bulk download facility. Here is my work around.

  1. Goto your Midjourney archive.

    • Login at Midjourney
    • Navigate to Archive, top left
  2. Create a page with the images you want to download. Zoom waaay out to get lots of images on the page.

  3. In your browser, File -> Save As and select the Webpage complete option. This will create an HTML file and a subdirectory IN_DIR containing .webp files with your images.

  4. Run Python code to convert to png files. I use great2 as the script g mj-process IN_DIR OUT_DIR.

  5. The download has random file names, so these files are best clustered and renamed. This can be done using great2.ImageOrganizer. Select the number of clusters appropriately.

    import great2 as g2
    ic = g2.ImageOrganizer()
    fl = Path(IN_DIR).glob('*.png')
    ic.image_list = fl
    ic.cluster(12, features='clip')
    ic.make_links(OUT_DIR)

Stephen J. Mildenhall. License: CC BY-SA 2.0.

 

Website made with Quarto