source: BOL/Multi_atlas/atlas/make_pdf2png.sh @ 5453

Last change on this file since 5453 was 4696, checked in by musat, 15 months ago

Creation png si pas existants
IonelaMusat?

  • Property svn:executable set to *
File size: 773 bytes
Line 
1#!/bin/bash
2
3dirpng=$1
4seas=$2
5proj=$3
6sim=$4 
7ref=$5 
8var=$6
9
10din=${dirpng}/${seas}/$ref/MAP/${proj}
11if [ ! -f ${din}/${var}.png ]; then
12cd ${din}
13convert ${var}.pdf ${var}.png
14convert -size 1500x1000 xc:white ${var}.png -geometry 1440x890+30+30 -composite -trim -gravity North ${var}.png
15fi
16
17din=${dirpng}/${seas}/${sim}/MAP/${proj}
18if [ ! -f ${din}/${var}.png ]; then
19cd ${din}
20convert ${var}.pdf ${var}.png
21convert -size 1500x1000 xc:white ${var}.png -geometry 1440x890+30+30 -composite -trim -gravity North ${var}.png
22fi
23
24din=${dirpng}/${seas}/${sim}/DMAP_${ref}/${proj}
25if [ ! -f ${din}/${var}.png ]; then
26cd ${din}
27convert ${var}.pdf ${var}.png
28convert -size 1500x1000 xc:white ${var}.png -geometry 1440x890+30+30 -composite -trim -gravity North ${var}.png
29fi
30
31exit
Note: See TracBrowser for help on using the repository browser.