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