Right. The myth of DPI is the problem. So what I need is to simply save the 
image exactly as it was but with the vector information overlaid - no 
compression, no resampling, no resizing.

________________________________
From: Brent Wood [pcr...@pcreso.com]
Sent: Saturday, 5 April 2014 3:52 p.m.
To: Geoff Hay; qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] aerial photo issues

If OSGeo4Win does mostly what you want, you can try GraphicsMagick to convert 
images to various formats...

Also Open Source, but command line based...

it can't get much easier than "gm convert image.png image.jpg" and there are 
lots of options to play with if necessary...

http://www.graphicsmagick.org/convert.html

or the less stable but perhaps more adventurous ImageMagick...



________________________________
From: Geoff Hay <geoffrey....@otago.ac.nz>
To: "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org>
Sent: Saturday, April 5, 2014 3:11 PM
Subject: [Qgis-user] aerial photo issues

Hi
I'm new to 
QGIS<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>.
 I am working with aerial photos and overlaying polygons and labelling. 
QGIS<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 works nicely for these tasks. I want to print these maps at a high resolution 
but have encountered a number of problems. I'd like some advice.

The original 
georeferenced<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 JPG files are 72 dpi and quite large (for example 9000 x 8000 pixels and 
57Mb<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>).
 The objective is to export as JPG at 300 dpi so that the vector layers and 
labelling are high quality and the original image quality is maintained when 
printed at full size. This seems to be no problem in 
ArcMap<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 but I have so far been unable to achieve it in 
QGIS<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>.
 Is this possible in 
QGIS<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>?

The default JPG exporter in Composer has a size limitation so it is unable to 
export the required size and resolution when I calculate and set a custom 
(large) paper size. When I scale the image the default producer also seems to 
be compressing the output (from 
57Mb<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 down to around 
8Mb<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>)
 which is ruining the print quality . I've read that  
GDAL<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 has a 
JPEG2000<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 driver which could possibly do the job but I have not been able to figure out 
how to make composer use this for exporting images.

I've tried exporting to PNG in composer and this seems to work without issues 
however the requirement is for JPG images - I wonder if it is reasonable 
practice to do a conversion later to get a JPG file?

I've tried the 
OSGeo4W<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 command line snapshot tool which seems to produce high res images but is 
limited to PNG output - is there any way to change this to JPG?

I've tried exporting to TIFF however this didn't work and resulted in an 
8Kb<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 file. Perhaps the original image needs to be converted to a TIFF file first?



Other comments:
In composer, it would be nice to be able to set the extent of the composition 
to the actual extent of the base image rather than the 
QGIS<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>
 canvas extent - I have to manually 
input<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx> the image 
extents. Actually it would be nice to have some mechanism that sets up the 
extents and paper size based on supplied dpi and the original image dimensions. 
perhaps this is not a common use case.

TIA
geoff<https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx><https://webmail.staff.otago.ac.nz/owa/UrlBlockedError.aspx>

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to