Comments (2)
You can if you build a script around the program.
For example, consider that you want to tile all images in the folder images_to_tile
. In Windows with Powershell, you can just paste the following code in the terminal:
Get-ChildItem ".\images_to_tile\" |
Foreach-Object { # for each file in the folder images_to_tile
echo "Tiling $_"
python tiler.py $_.FullName .\tiles\circles\gen_circle_100\ # run the tiling program; change here the type of tiles if you want
mv -Force out.png "$($_.BaseName).png" # rename the output (out.png) to have the same name as the original image
echo ""
}
If you instead use Linux or MacOS, you can run the following Bash script
for filename in images_to_tile/*; do # for each file in the folder images_to_tile
echo "Tiling ${filename##*/}"
python3 tiler.py $filename ./tiles/circles/gen_circle_100/ # run the tiling program; change here the type of tiles if you want
mv out.png ${filename##*/} # rename the output (out.png) to have the same name as the original image
echo ""
done
Let me know if this solved your issue.
from tiler.
Thank you very much, successfully solved my problem!
from tiler.
Related Issues (20)
- Feature : Use vector image or input and output HOT 1
- "invalid syntax" or "AttributeError: 'Pool' object has no attribute 'starmap'" HOT 1
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 1
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 3
- [Error] - Running tiler.py HOT 1
- TypeError: flip() missing 1 required positional argument: 'axis' HOT 4
- Requesting permission to use some of your Tiles HOT 2
- Config details for example output HOT 8
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 10
- Starting Tiler Error HOT 20
- test HOT 2
- Sorry,you've spelt the word wrong. HOT 1
- How do I count the number of each color block used in each picture? HOT 7
- IndexError: tuple index out of range HOT 2
- conf of examples HOT 2
- who can help me about: <python tiler.py path/to/image path/to/tiles_folder/> HOT 3
- It takes a long time HOT 1
- stuck at "Getting and processing boxes" HOT 1
- Not able to create mosaic using human face image (tile image) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiler.