forked from 0x2620/pandora
merge
This commit is contained in:
commit
665c2869ed
2 changed files with 4 additions and 4 deletions
|
@ -114,10 +114,7 @@ class Annotation(models.Model):
|
|||
Annotation.objects.filter(id=self.id).update(public_id=self.public_id)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.id:
|
||||
set_public_id = True
|
||||
else:
|
||||
set_public_id = False
|
||||
set_public_id = not self.id
|
||||
|
||||
#no clip or update clip
|
||||
if not self.clip and not self.layer.private or \
|
||||
|
|
|
@ -265,6 +265,9 @@ def resize_image(image_source, image_output, width=None, size=None):
|
|||
height = int(width / (float(source_width) / source_height))
|
||||
height = height - height % 2
|
||||
|
||||
width = min(width, 1)
|
||||
height = min(height, 1)
|
||||
|
||||
if width < source_width:
|
||||
resize_method = Image.ANTIALIAS
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue