<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  
  

  
	  <!-- New body template to add a custom footer block : ajp, Fri 10 Jun 2011 13:48:56 BST -->


  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <link rel="stylesheet" type="text/css" media="screen" href="/ome/chrome/agilo/stylesheet/agilo_theme.css" />
    <link rel="stylesheet" type="text/css" media="print" href="/ome/chrome/agilo/stylesheet/print.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/ome/chrome/agilo/js/lib/select2js/select2.css" />
    <title>
      0001-JPEG2000Reader-Read-files-irrespective-of-name.patch on Ticket #9124 – Attachment
     – OME
    </title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <link rel="search" href="/ome/search" />
        <link rel="help" href="/ome/wiki/TracGuide" />
        <link rel="alternate" href="/ome/raw-attachment/ticket/9124/0001-JPEG2000Reader-Read-files-irrespective-of-name.patch" type="text/x-diff; charset=iso-8859-15" title="Original Format" />
        <link rel="up" href="/ome/ticket/9124" title="Ticket #9124" />
        <link rel="start" href="/ome/wiki" />
        <link rel="stylesheet" href="/ome/chrome/common/css/diff.css" type="text/css" /><link rel="stylesheet" href="/ome/chrome/common/css/code.css" type="text/css" /><link rel="stylesheet" href="/ome/chrome/agilo_common/css/licenseNotifier.css" type="text/css" /><link rel="stylesheet" href="/ome/chrome/agilo_pro/css/agilo_pro.css" type="text/css" /><link rel="stylesheet" href="/ome/chrome/agilo/stylesheet/agilo.css" type="text/css" />
        <link rel="shortcut icon" href="/ome/chrome/site/favicon.ico" type="image/x-icon" />
        <link rel="icon" href="/ome/chrome/site/favicon.ico" type="image/x-icon" />
      <link type="application/opensearchdescription+xml" rel="search" href="/ome/search/opensearch" title="Search OME" />
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/common/js/jquery.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/common/js/babel.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/common/js/trac.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/common/js/search.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/common/js/diff.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/agilo_common/js/licenseNotifier.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/agilo/js/sidebar.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/agilo/js/cookies.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/agilo/js/settings.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/agilo/js/collapse.js"></script>
      <script type="text/javascript" charset="utf-8" src="/ome/chrome/agilo/js/ie-patches.js"></script>
      <script type="text/javascript" src="/ome/chrome/common/js/folding.js"></script>
      <script type="text/javascript">
        jQuery(document).ready(function($) {
          $('#preview table.code').enableCollapsibleColumns($('#preview table.code thead th.content'));
        });
      </script>
	<script type="text/javascript" src="/ome/chrome/agilo/js/lib/jquery.form.js"></script>
    <script type="text/javascript" src="/ome/chrome/agilo/js/lib/jquery.cookie.js"></script>
    <script type="text/javascript" src="/ome/chrome/agilo/js/lib/html2canvas.js"></script>
    <script type="text/javascript" src="/ome/chrome/agilo/js/lib/select2js/select2.js"></script>
	<script type="text/javascript" src="/ome/chrome/agilo/js/third_parties_hacks.js"></script>
	<script type="text/javascript" src="/ome/chrome/agilo/js/utilities.js"></script>
	<script type="text/javascript">
	//<![CDATA[
		// Initialize the variables right at the start, so other js can use it in document.ready handlers
		BASE_URL = "/ome";
		CHROME_URL = "/ome/chrome";
		// Normalise base url pattern so it also works with mod_python which can hickup on double slashes...
		if ((/\/$/).test(BASE_URL))
			BASE_URL = BASE_URL.slice(0, -1);
		// No caching of ajax. Ever. Especially in IE 7!
		$.ajaxSetup({cache: false});
		// If we use metadata we want to put json into the data attribute
		if ($.metadata)
			$.metadata.setType('attr', 'data');
		// Disable selection on the navigation
		$(document).ready(function() {
			setTimeout('if ($.fn.disableSelection) $(".menu").disableSelection()',500);
              $("select.searchable, #field-milestone, #field-owner, #field-sprint").select2();
		});
		// this is used to trigger javascript execution when the page is accessed from history (e.g. browser's back button)
		window.onunload = function(){};
	//]]>
	</script>
	    <link rel="stylesheet" type="text/css" href="/ome/chrome/site/style.css" />
	  </head>
	<body>
	<div class="menu">
	<form class="search" id="search_form" action="/ome/search" method="get">
	<label><a href="">Advanced Search</a></label>
	<input type="text" id="proj-search" name="q" size="18" value="" />
	</form>
        <div id="project_logo_container">
            <a id="logo" href="http://trac.openmicroscopy.org.uk/ome">
                <img src="/ome/chrome/site/my_logo.png" alt="OME" />
            </a>
        </div>
        <ul class="button group mainnav">
		                <li><a href="/ome/wiki" class="iconWiki">Wiki</a></li>
		                <li><a href="/ome/timeline" class="iconTimeline">Timeline</a></li>
		                <li><a href="/ome/roadmap" class="iconRoadmap">Roadmap</a></li>
		                <li><a href="/ome/browser" class="iconBrowser">Browse Source</a></li>
		                <li><a href="/ome/report" class="iconTickets">View Tickets</a></li>
		                <li><a href="/ome/search" class="iconSearch">Search</a></li>
		</ul>
        <div class="metanav-container">
            <a class="metanav-logo" href="/ome"></a>
        <ul class="button group metanav">
		                <li><a href="/ome/login" class="iconLogin">Login</a></li>
		                <li><a href="/ome/agilo-help">Help/Guide</a></li>
		                <li><a href="/ome/about" class="iconAbout">About Trac</a></li>
		                <li><a href="/ome/prefs" class="iconPrefs">Preferences</a></li>
		</ul>
        </div>
    </div>
	<div class="sidebar"><!-- TODO: make this a harmonica, or add an all toggle -->
	<!-- TODO: fix the empty space at the bottom. -->
		<label>Tickets</label>
		<ul class="tickets tree">
		</ul>
    <label>Wiki</label>
	<ul class="wiki tree">
	</ul>
	</div>
	<div class="main"><!-- Main Content -->
	<div id="popup-div">Loading...</div>
	<div id="ctxtnav" class="nav">
	<h2>Context Navigation</h2>
	<ul>
		<li class="first last"><a href="/ome/ticket/9124">Back to Ticket #9124</a></li>
	</ul>
	<hr />
	</div>
    <div id="content" class="attachment">
        <h1><a href="/ome/ticket/9124">Ticket #9124</a>: 0001-JPEG2000Reader-Read-files-irrespective-of-name.patch</h1>
        <table id="info" summary="Description">
          <tbody>
            <tr>
              <th scope="col">File 0001-JPEG2000Reader-Read-files-irrespective-of-name.patch,
                <span title="1039 bytes">1.0 KB</span>
                (added by rleigh, <a class="timeline" href="/ome/timeline?from=2012-06-28T13%3A20%3A27%2B01%3A00&amp;precision=second" title="See timeline at 06/28/12 13:20:27">7 years ago</a>)</th>
            </tr>
            <tr>
              <td class="message searchable">
                <p>
PATCH: Fix JPEG 2000 import
</p>

              </td>
            </tr>
          </tbody>
        </table>
        <div id="preview" class="searchable">
          
  <div class="diff">
  <ul class="entries">
      <li class="entry">
        <h2>
          <a>components/scifio/src/loci/formats/in/JPEG2000Reader.java</a>
        </h2>
        <pre>From fa0b8581bbc3df270ff9b37307ef671f3fb7fbe8 Mon Sep 17 00:00:00 2001
From: Roger Leigh &lt;r.leigh@dundee.ac.uk&gt;
Date: Thu, 28 Jun 2012 13:15:33 +0100
Subject: [PATCH] JPEG2000Reader: Read files irrespective of name

Set suffixNecessary = false.  This allows images with any suffix
to be read, and should correct import issues with JPEG 2000 files.
---
 components/scifio/src/loci/formats/in/JPEG2000Reader.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/scifio/src/loci/formats/in/JPEG2000Reader.java b/components/scifio/src/loci/formats/in/JPEG2000Reader.java
index 40432f3..9fde93a 100644</pre>
        <table class="trac-diff inline" summary="Differences" cellspacing="0">
              <colgroup><col class="lineno" /><col class="lineno" /><col class="content" /></colgroup>
              <thead>
                <tr>
                  <th title="File a/components/scifio/src/loci/formats/in/JPEG2000Reader.java">
                      a
                  </th>
                  <th title="File b/components/scifio/src/loci/formats/in/JPEG2000Reader.java">
                      b
                  </th>
                  <td><em> public class JPEG2000Reader extends FormatReader {</em> </td>
                </tr>
              </thead>
            <tbody class="unmod">
                  <tr>
                          <th>86</th><th>86</th><td class="l"><span>&nbsp; public JPEG2000Reader() {</span> </td>
                  </tr><tr>
                          <th>87</th><th>87</th><td class="l"><span>&nbsp; &nbsp; super("JPEG-2000", new String[] {"jp2", "j2k", "jpf"});</span> </td>
                  </tr><tr>
                          <th>88</th><th>88</th><td class="l"><span>&nbsp; &nbsp; suffixSufficient = false;</span> </td>
                  </tr>
            </tbody><tbody class="add">
                  <tr class="last first">
                          <th> </th><th>89</th><td class="r"><ins>&nbsp; &nbsp; suffixNecessary = false;</ins> </td>
                  </tr>
            </tbody><tbody class="unmod">
                  <tr>
                          <th>89</th><th>90</th><td class="l"><span>&nbsp; &nbsp; domains = new String[] {FormatTools.GRAPHICS_DOMAIN};</span> </td>
                  </tr><tr>
                          <th>90</th><th>91</th><td class="l"><span>&nbsp; }</span> </td>
                  </tr><tr>
                          <th>91</th><th>92</th><td class="l"><span></span> </td>
                  </tr>
            </tbody>
        </table>
      </li>
  </ul>
</div>

        </div>
    </div>
    <div id="altlinks">
      <h3>Download in other formats:</h3>
      <ul>
        <li class="last first">
          <a rel="nofollow" href="/ome/raw-attachment/ticket/9124/0001-JPEG2000Reader-Read-files-irrespective-of-name.patch">Original Format</a>
        </li>
      </ul>
    </div>
	<div id="bottom">
	<p><span class="agilo_version">1.3.13-PRO</span> © 2008-2011
	<a href="http://www.agilosoftware.com/" target="_blank">Agilo Software</a> all
	rights reserved
        (this page was served in: 0.24868 sec.)
    </p>
	</div>
	</div>
		<div class="ome-footer">
			<p>
			  <acronym title="Copyright">©</acronym> 2000-2014 University of
			  Dundee &amp; Open Microscopy Environment.
			  <a href="http://www.openmicroscopy.org/site/about/licensing-attribution">Creative Commons Attribution 3.0 Unported License</a><br />
			  OME source code is available under the <a href="http://www.openmicroscopy.org/site/about/licensing-attribution">
			  GNU General public license</a> or through commercial license from
			<a href="http://www.glencoesoftware.com/">Glencoe Software</a>
		  </p>
		</div>
		<div class="left-ribbon-holder">
			<img id="left-hire-ribbon" src="https://www.openmicroscopy.org/site/art/were-hiring-ribbon-100x100.png" usemap="#left-hire-ribbon-map" />
			<map id="_left-hire-ribbon-map" name="left-hire-ribbon-map">
				<area shape="poly" coords="0,63,63,0,87,0,0,87," href="https://www.openmicroscopy.org/site/community/jobs" alt="We're Hiring!" title="OME Jobs" />
				<area shape="poly" coords="0,0,0,60,60,0," href="/ome" />
				<area shape="poly" coords="90,0,100,0,100,70,28,70," href="/ome" />
			</map>
		</div>
	  </body>
</html>