Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

withgdal.sh 646 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  1. #!/bin/bash
  2. #
  3. # $Id$
  4. . ../functions.sh
  5. GDAL=`grdreformat 2>&1 | grep -c gd`
  6. if [ $GDAL -eq 0 ]; then exit; fi
  7. header "Test psimage for reading images with GDAL"
  8. ps=withgdal.ps
  9. # RGB image
  10. psimage ../grdimage/gdal/needle.jpg -W7c -P -Y15c -K > $ps
  11. # Same image as above but as idexed
  12. psimage ../grdimage/gdal/needle.png -W7c -X7.5c -O -K >> $ps
  13. # Convert RGB to YIQ
  14. psimage ../grdimage/gdal/needle.jpg -M -W7c -X-7.5c -Y-7c -O -K >> $ps
  15. # Convert Indexed to YIQ
  16. psimage ../grdimage/gdal/needle.png -M -W7c -X7.5c -O -K >> $ps
  17. # A gray image (one band, no color map)
  18. psimage ../grdimage/gdal/vader.jpg -W4c -X-2.5c -Y4.5c -O >> $ps
  19. pscmp
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...