This commit is contained in:
.[d]. 2023-02-06 16:58:12 -06:00
parent 3975d7e1ef
commit fa9b095926
2 changed files with 104 additions and 8 deletions

View File

@ -1 +1,97 @@
ill add readme and make it more public here shortly, working on a maple txt2img plugin
# .[d]. ircd.chat/6697 #tcpdirect
```
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMh+MMMMMMMMMMMMMMhsMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm/ oMMMMMMMMMMMMMMm +NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMy` yMMMMMMMMMMMMMMM- -mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMs+dMMMMMMMMMM+ sMMMMMMMMMMMMMMM- `dMMMMMMMMMMms/NMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMM+ .omMMMMMM: -MMMMMMMMMMMMMMo `yMMMMMMMy: `dMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMM- /dMMM+ sMMMMMMMMMMMMh `hMMMNo` sMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMd :dm `mMMMMMMMMMMN. .NNo` .MMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMM: - :MMMMMMMMMMs :` sMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMs ymNMMMMMNm. NMMMMMMMMMMMMMMMMMMMMMMMMM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MMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNs. -hMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMdyymMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
```
## summary
```
dr1p1m4g3 - v1.0
```
## overview
```
custom image viewer for my txt2img projects
```
## usage
```
command line:
usage: dr1p1mage.py base_picture_directory_path starting_index rendering_mode pump_mode pump_interval shuffle
base_picture_directory_path:
??: the directory you want to load images from
string: path
e.g. /home/user/Pictures
starting_index:
??: index number you want to start from
integer: index
e.g. 3
rendering mode:
??: the rendering mode you want to use to start
integer: index
0: image y screen-constrained - scales the image to the height of the screen
1: image x screen-constrained - scales the image to the width of the screen
2: image x,y screen-constrained - scales the image to the height,width of the screen
3: image x,y image-thumbnail - scales image within screen-resolution
4: image original - displays image at normal scale
e.g. 3
pump_mode:
??: this changes images automatically
integer: boolean
0: off
1: on
e.g. 1
pump_interval:
??: the interval in seconds between pictures changing automatically
float: value
e.g. 3.5
shuffle:
??: randomize order that images are loaded
integer: boolean
e.g. 1
hotkeys:
m: shuffle on/off
p: autopump on/off
r: cycle image-rendering modes
t: display text on/off
up: increase autopump inverval
down: decrease autopump interval
left: change image
right: change image
s: move image to _keep directory
d: move image to _drop directory
q: quit program
```

View File

@ -32,18 +32,18 @@ MOTD[0]=f"""hotkeys:
d: move image to _drop directory
q: quit program
Change SHOWHELP=True to SHOWHELP=False to remove this message.
Change SHOWHELP=True to SHOWHELP=False to remove this message.
"""
MOTD[1]=f"""base_picture_directory:
MOTD[1]=f"""base_picture_directory_path:
??: the directory you want to load images from
string: path
e.g. /home/user/Pictures
starting_index:
??: index number you want to start from
integer: index
e.g. 3
rendering mode:
??: the rendering mode you want to use to start
integer: index
@ -73,7 +73,7 @@ shuffle:
Change SHOWHELP=True to SHOWHELP=False to remove this message.
command line:
command line:
usage: {sys.argv[0]} base_picture_directory_path starting_index rendering_mode pump_mode pump_interval shuffle
"""
@ -455,7 +455,7 @@ if __name__=="__main__":
print(MOTD[1])
print('press enter key to continue')
input()
#########################################################################################################################################
#########################################################################################################################################
DEBUG=False
if DEBUG:
USERPATH=str(wrapper(main))
@ -519,4 +519,4 @@ if __name__=="__main__":
#########################################################################################################################################
dr1p1m4g3=DR1P1M4G3(USERPATH,IMGINDEX,RENDMODE,PUMPMODE,PUMPTIME,USERSHUF)
#########################################################################################################################################
####################################################################################################################################### EOF
####################################################################################################################################### EOF