-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to the GRASS toolbox - take 1 from the hackfest
git-svn-id: http://svn.osgeo.org/qgis/trunk@14546 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
pcav
committed
Nov 11, 2010
1 parent
1372985
commit c47217f
Showing
7 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Use a simple shell loop, to process each of the images. | ||
mkdir thumbnails | ||
# for $a in *.png | ||
# echo $a | ||
# do convert -thumbnail $a 32x32 thumbnails/$f.png | ||
#done | ||
|
||
# Use find to substitute filenames into a 'convert' command | ||
# This also provides the ability to recurse though directories by removing | ||
# the -prune option, as well as doing other file checks (like image type, | ||
# or the disk space used by an image). | ||
find * -prune -name '*.png' \ | ||
-exec convert '{}' -alpha set -channel RGBA -fill none -opaque white \ | ||
-thumbnail x32 thumbnails/'{}' \; | ||
# -alpha set -channel RGBA -fill none -opaque white test.png | ||
#for i in `find . -name "*.png` | ||
#echo $i | ||
#do | ||
# convert $i -thumbnail 32x32 `basename $i.png`.png | ||
#done | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd"> | ||
|
||
<qgisgrassmodule label="Import text file" module="v.in.ascii"> | ||
<file key="input" label="Text file"/> | ||
<option key="output"/> | ||
<option key="format"/> | ||
<option key="fs" label="Separator (| , \t etc.)" /> | ||
<option key="skip" label="Number of rows to be skipped"/> | ||
<option key="x" label="Which column for the X coordinate? The first is 1"/> | ||
<option key="y" label="Which column for the Y coordinate?"/> | ||
<option key="z" label="Which column for the Z coordinate? If 0, z coordinate is not used"/> | ||
</qgisgrassmodule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters