def generate_tile(self, region, size):
        """Generate one tile for this given region, size of this image."""
        r = IIIFRequest(identifier=self.identifier,
                        api_version=self.api_version)
        if (region == 'full'):
            r.region_full = True
        else:
            r.region_xywh = region  # [rx,ry,rw,rh]
        r.size_wh = size  # [sw,sh]
        r.format = 'jpg'
        self.generate_file(r, True)
def generate_tile ( self , region , size ) : r = IIIFRequest ( identifier = self . identifier , api_version = self . api_version ) if ( region == 'full' ) : r . region_full = True else : r . region_xywh = region r . size_wh = size r . format = 'jpg' self . generate_file ( r , True )
Generate one tile for this given region, size of this image.