Changeset 31161 in osm for applications/editors/josm/plugins/mapillary/src/org
- Timestamp:
- 2015-05-29T16:16:14+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillaryExportDownloadThread.java
r31159 r31161 10 10 11 11 import javax.imageio.ImageIO; 12 import javax.imageio.ImageWriter; 13 import javax.imageio.metadata.IIOMetadata; 12 14 13 15 import org.apache.commons.jcs.access.CacheAccess; … … 20 22 import org.openstreetmap.josm.plugins.mapillary.MapillaryImage; 21 23 import org.openstreetmap.josm.plugins.mapillary.cache.MapillaryCache; 24 25 //import com.sun.imageio.plugins.png.PNGMetadata; 22 26 23 27 public class MapillaryExportDownloadThread implements Runnable, … … 39 43 @Override 40 44 public void run() { 45 ImageWriter writer = ImageIO.getImageWritersByFormatName("png").next(); 46 //IIOMetadata metadata = writer.getDefaultImageMetadata(typeSpecifier, writeParam); 41 47 try { 42 48 CacheAccess<String, BufferedImageCacheEntry> prev = JCSCacheManager -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillaryExportWriterThread.java
r31158 r31161 35 35 try { 36 36 img = queue.take(); 37 outputfile = new File(path + "/" + i + ". png");38 ImageIO.write(img, " png", outputfile);37 outputfile = new File(path + "/" + i + ".jpg"); 38 ImageIO.write(img, "jpg", outputfile); 39 39 } catch (InterruptedException e1) { 40 40 // TODO Auto-generated catch block
Note:
See TracChangeset
for help on using the changeset viewer.