mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-09-01 02:22:00 +02:00
Update app.py
Reduced max DPI and paper size to reduce load on streamlit cloud
This commit is contained in:
committed by
GitHub
parent
788dd72cd0
commit
f84a90de04
6
app.py
6
app.py
@@ -65,10 +65,11 @@ with cols[0]:
|
||||
page_size_col, dpi_col = st.columns(2)
|
||||
with page_size_col:
|
||||
page_size = st.selectbox(
|
||||
"Page Size", ["A4", "A5", "A3", "A2", "A1", "Custom"], index=0
|
||||
"Page Size", ["A4", "A5", "Square"], index = 0
|
||||
#, "A3", "A2", "A1", "Custom"], index=0
|
||||
)
|
||||
with dpi_col:
|
||||
dpi = st.number_input("DPI", min_value=72, max_value=600, value=300, step=50)
|
||||
dpi = st.number_input("DPI", min_value=50, max_value=300, value=100, step=50)
|
||||
|
||||
if page_size == "Custom":
|
||||
width = st.number_input("Custom Width (inches)", min_value=1.0, value=8.27)
|
||||
@@ -77,6 +78,7 @@ with cols[0]:
|
||||
page_sizes = {
|
||||
"A4": (8.27, 11.69),
|
||||
"A5": (5.83, 8.27),
|
||||
"Square": (8.27, 8.27),
|
||||
"A3": (11.69, 16.54),
|
||||
"A2": (16.54, 23.39),
|
||||
"A1": (23.39, 33.11),
|
||||
|
Reference in New Issue
Block a user