<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert jpg to tif - arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200933#M15471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;i run the code with this changes :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;in_folder = r"C:\Project\out"&amp;nbsp; 
out_folder = r"C:\Project\out\jpg"&lt;/PRE&gt;&lt;P&gt;and the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; 
[u'BSM-1534.tif']
BSM-1534.tif
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;and no converted rasters in the out folder. I don't know why the code don't convert- it seems right and clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:00:13 GMT</pubDate>
    <dc:creator>Yaron_YosefCohen</dc:creator>
    <dc:date>2021-12-11T10:00:13Z</dc:date>
    <item>
      <title>Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200914#M15452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have several rasters( jpg files ) and i want convert them to tif files to file " OtherFormat" in env.workspace with arcpy. In my code i try to convert all jpg file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy,os,sys,string
import arcpy.mapping
from arcpy import env

env.workspace = r"C:\Project\out"
arcpy.RasterToOtherFormat_conversion("*.jpg","OtherFormat","TIFF") 
print 'converted'&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but get en error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Rasters: Dataset *.jpg does not exist or is not supported
Failed to execute (RasterToOtherFormat).&lt;/PRE&gt;&lt;P&gt;any help would be great&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200914#M15452</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2021-12-11T09:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200915#M15453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen this &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001200000032000000" title="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001200000032000000"&gt;ArcGIS Desktop&lt;/A&gt; ? I'm not a developer, so I probably can't help with code questions, but I did notice a sample code in here that is similar to yours that I thought might help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:08:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200915#M15453</guid>
      <dc:creator>LisaTurner</dc:creator>
      <dc:date>2015-03-30T15:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200916#M15454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lisa, yes i based my code from there- thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200916#M15454</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-03-30T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200917#M15455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The list of jpgs should be a list (string) separated by semicolons. Use arcpy.ListRasters to obtain the list of input jpgs and format the list into a string using the semicolon as separator. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200917#M15455</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-03-30T15:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200918#M15456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander, i try this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy,os,sys,string
import arcpy.mapping
from arcpy import env

env.workspace = r"C:\Project\out"
rasters = arcpy.ListRasters("*", "JPG")
for raster in rasters:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print(raster)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.RasterToOtherFormat_conversion("*.jpg","OtherFormat","TIFF")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'converted'&lt;/PRE&gt;&lt;P&gt;but get en error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; 
BSM-1534.jpg


Traceback (most recent call last):
&amp;nbsp; File "C:\Users\htr\Desktop\python2.py", line 11, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.RasterToOtherFormat_conversion("*.jpg","OtherFormat","TIFF")
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\conversion.py", line 2753, in RasterToOtherFormat
&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Rasters: Dataset *.jpg does not exist or is not supported
Failed to execute (RasterToOtherFormat).&lt;/PRE&gt;&lt;P&gt;in the work space i do have jpg rasters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200918#M15456</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2021-12-11T09:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200919#M15457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to replace&lt;/P&gt;&lt;P&gt;arcpy.RasterToOtherFormat_conversion(&lt;SPAN class="string"&gt;"*.jpg"&lt;/SPAN&gt;,&lt;SPAN class="string"&gt;"OtherFormat"&lt;/SPAN&gt;,&lt;SPAN class="string"&gt;"TIFF"&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;arcpy.RasterToOtherFormat_conversion(&lt;SPAN class="string"&gt;raster , "&lt;/SPAN&gt;&lt;SPAN class="string"&gt;OtherFormat"&lt;/SPAN&gt;,&lt;SPAN class="string"&gt;"TIFF"&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List Rasters returns a list of raster string paths, so when you loop through them, raster represents the file path for the raster you want converted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200919#M15457</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-03-30T15:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200920#M15458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what the meaning of the " * " ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 16:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200920#M15458</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-03-30T16:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200921#M15459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i add the tif to mxd i get the raster and black area a round:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-03-30_192526.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/80232_2015-03-30_192526.jpg" style="width: 620px; height: 334px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 16:23:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200921#M15459</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-03-30T16:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200922#M15460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you set the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009t0000002v000000"&gt;NoData value&lt;/A&gt; for display?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 16:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200922#M15460</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-30T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200923#M15461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in tools like ListRasters the "*" acts as a wildcard that will take any string name.&amp;nbsp; So if you have&amp;nbsp; "DEM*"&amp;nbsp; it will return any jpegs that begin with "DEM" and have any characters following it.&amp;nbsp; This does not work with arcpy.RasterToOtherFormat_conversion as an input, since it is checking for a raster at a specific file path, not attempting to find multiple rasters as the ListRasters does.&amp;nbsp; ListRasters is intended to get a list of all the rasters of the name and type you indicated, which you can then use as the input for other geoprocessing tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 16:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200923#M15461</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-03-30T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200924#M15462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;when i run the code i get:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; 
2015-03-25_084900.jpg
converted
&amp;gt;&amp;gt;&amp;gt; &lt;/PRE&gt;&lt;P&gt;but when i open r"C:\Project\out\OtherFormat" there no tiff raster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200924#M15462</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2021-12-11T10:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200925#M15463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;when i try to convert tiff to jpg with:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy,os,sys,string 
import arcpy.mapping 
from arcpy import env 

env.workspace = r"C:\Project\out\OtherFormat" 
rasters = arcpy.ListRasters("*", "TIFF") 
for raster in rasters: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print(raster) 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.RasterToOtherFormat_conversion(rasters ,"OtherFormat","JPEG") 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'converted'&lt;/PRE&gt;&lt;P&gt;the code just run without any messages and the tif raster does not converted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200925#M15463</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2021-12-11T10:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200926#M15464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;almost there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the arcpy.RasterToOtherFormat_conversion, you are passing along rasters, which is your list of rasters instead of the individual rasters which would just be your variable, raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not this:&lt;/P&gt;&lt;P&gt;arcpy.RasterToOtherFormat_conversion(rasters ,&lt;SPAN class="string"&gt;"OtherFormat",&lt;SPAN class="string"&gt;"JPEG"&lt;/SPAN&gt;) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;But this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;arcpy.RasterToOtherFormat_conversion(raster ,&lt;SPAN class="string"&gt;"OtherFormat",&lt;SPAN class="string"&gt;"JPEG"&lt;/SPAN&gt;) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 14:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200926#M15464</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-03-31T14:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200927#M15465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the result is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; ================================ RESTART ================================
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; &lt;/PRE&gt;&lt;P&gt;and there no converted rasters in OtherFormat folder. i tried also to convert bmp and png format to jpg- with no success .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200927#M15465</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2021-12-11T10:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200928#M15466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if you need an app within Arc to do this or not, but I do know that I have successfully converted jpegs to tiffs in a free application called QGIS. It lets you keep the same projection, and isn't too difficult to use. No coding required. Granted, I'm fairly certain the programmers in here likely could keep working with you until the code works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 12:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200928#M15466</guid>
      <dc:creator>LisaTurner</dc:creator>
      <dc:date>2015-04-01T12:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200929#M15467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several errors in your code. Have a look at the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

in_folder = r"C:\Forum\TIFF2JPG\tiff"
out_folder = r"C:\Forum\TIFF2JPG\jpg"

arcpy.env.workspace = in_folder
rasters = arcpy.ListRasters("*", "TIF")
print rasters
for raster in rasters:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print raster
&amp;nbsp;&amp;nbsp;&amp;nbsp; # RasterToOtherFormat_conversion (Input_Rasters, Output_Workspace, {Raster_Format})
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.RasterToOtherFormat_conversion(raster, out_folder, "JPEG")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes to the code:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I left out all the imports that you were not using, just left the arcpy&lt;/LI&gt;&lt;LI&gt;I created to variables to store valid input and output folders (can be the same)&lt;/LI&gt;&lt;LI&gt;On line 7 you used "TIFF" as format, if you look at the help you will see that you should use "TIF"&lt;/LI&gt;&lt;LI&gt;On line 12 I use the out_folder variable for the output workspace. You specified "OtherFormat" which isn't a valid workspace&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result that is printed is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[u'image00.tif', u'image01.tif', u'image02.tif', u'image03.tif']
image00.tif
image01.tif
image02.tif
image03.tif&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The out_folder contains the 4 jpg's names image00.jpg to image03.jpg including wordfiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No "black areas" are invented in the output. However if your input has a larger area than your data extent, this will be exported too. Also when run within the Python window of ArcMap, extent environment settings will influence the result. The black area is how in TIFF imagery the nodata is represented by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert JPG to TIFF just invert the TIF and JPEG settings (and point to the correct folders).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200929#M15467</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T10:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200930#M15468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lisa, programming isn't required to do this for a single&amp;nbsp; tif, but it sounds like she wants to convert an entire folders worth of tifs to jpegs.&amp;nbsp; It fine to go and do manually if you have just a few, but it sound like they could have many tifs to be converted, so a script to do it all could save lots of time.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 13:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200930#M15468</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-04-01T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200931#M15469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ian,&lt;/P&gt;&lt;P&gt;I do batches of a few hundred at a time on QGIS all the time. The only manual step would be the input test of one or two to make sure the output is how someone needs it to be. It's all good though as I am learning so much from watching you all adjust the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 13:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200931#M15469</guid>
      <dc:creator>LisaTurner</dc:creator>
      <dc:date>2015-04-01T13:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200932#M15470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still just a student and haven't been able to look into Open Source GIS a whole lot, though it sounds like it would be fairly easy to do in QGIS, more so then running a tool like that in batch mode in ArcGIS.&amp;nbsp; Python just helps augment ArcGIS geoprocessing tools to make them more effective.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 14:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200932#M15470</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-04-01T14:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert jpg to tif - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200933#M15471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;i run the code with this changes :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;in_folder = r"C:\Project\out"&amp;nbsp; 
out_folder = r"C:\Project\out\jpg"&lt;/PRE&gt;&lt;P&gt;and the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; 
[u'BSM-1534.tif']
BSM-1534.tif
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;and no converted rasters in the out folder. I don't know why the code don't convert- it seems right and clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-jpg-to-tif-arcpy/m-p/200933#M15471</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2021-12-11T10:00:13Z</dc:date>
    </item>
  </channel>
</rss>

