Forum

Author Topic: Unable to Generate JPEG image from exportOrthomosaic Image  (Read 6612 times)

vathsasri321

  • Newbie
  • *
  • Posts: 3
    • View Profile
Unable to Generate JPEG image from exportOrthomosaic Image
« on: February 17, 2017, 08:02:47 AM »
Hi ,

I am using the latest version of agisoft 1.3 . when i am trying to export the orthomosaic image as jpeg using the below method.

chunk.exportOrthomosaic(filepath,image_format=PhotoScan.ImageFormatJPEG raster_transform=PhotoScan.RasterTransformNone,
tiff_compression=PhotoScan.TiffCompressionLZW, tiff_big=False, jpeg_quality=90)

then error pops up like "Invalid arguments TiffCompressionLZW  ,jpeg_quality=90 in function"

Please Resolve it.

Thibaud Capra

  • Full Member
  • ***
  • Posts: 101
  • Master Student in Geodetic Engineering & Surveying
    • View Profile
    • INSA de Strasbourg, Topography Engineering (French)
Re: Unable to Generate JPEG image from exportOrthomosaic Image
« Reply #1 on: February 17, 2017, 10:47:08 AM »
Hello vathsasri321,

First, as this is a Python-related question, you should try to post it in the Python Scripting category!

Now to your problem.

Your export format should be 'jpg', not 'jpeg' I guess.
Quote
format (string) – Export format in [’tif’, ‘jpg’, ‘png’, ‘kmz’].
This is from the Python Reference Guide.

Also, your TiffCompression argument has no reason to be there as you're exporting a jpg image. I'd ditch it.
Best regards.
--
Thibaud CAPRA
Master Student in Geodetic Engineering, Cartography & Surveying
Master Thesis in Automated Processing of UAV-based Photogrammetric Data (ResearchGate Link)
INSA de Strasbourg, FRANCE
--

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15366
    • View Profile
Re: Unable to Generate JPEG image from exportOrthomosaic Image
« Reply #2 on: February 17, 2017, 11:44:37 AM »
Hello vathsasri321,

You are missing comma after image_format argument.
Best regards,
Alexey Pasumansky,
Agisoft LLC

vathsasri321

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Unable to Generate JPEG image from exportOrthomosaic Image
« Reply #3 on: February 17, 2017, 11:58:26 AM »
Yes. I have resolved it ..Thanks  :) :)