mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-21 23:01:52 +00:00
tidyup of image rotate
This commit is contained in:
parent
85487efee3
commit
1effc10e3f
@ -423,7 +423,7 @@ def expofilerename(request, filepath):
|
||||
)
|
||||
message = f'! - ROTATE - Success: rotated this file {filename}.' + msgdata
|
||||
print(message)
|
||||
DataIssue.objects.create(parser="mogrify", message=message)
|
||||
# DataIssue.objects.create(parser="mogrify", message=message)
|
||||
|
||||
if rot.returncode != 0:
|
||||
msgdata = (
|
||||
|
@ -36,9 +36,10 @@ def load_all_scans():
|
||||
|
||||
SingleScan.objects.all().delete()
|
||||
Wallet.objects.all().delete()
|
||||
print(" - deleting all Wallet and SingleScan objects")
|
||||
print(" - deleting all Wallet and SingleScan objects, and resize error messages")
|
||||
DataIssue.objects.filter(parser="scans").delete()
|
||||
DataIssue.objects.filter(parser="wallets").delete()
|
||||
DataIssue.objects.filter(parser="mogrify").delete()
|
||||
|
||||
# These are valid old file types to be visible, they are not necessarily allowed to be uploaded to a new wallet.
|
||||
valids = [
|
||||
|
@ -24,6 +24,7 @@
|
||||
<br>
|
||||
<input class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px "
|
||||
|
||||
title="Type in the new name for this file here"
|
||||
label = "Rename to" name = "renametoname" id="renameto"
|
||||
pattern="[A-Za-z][A-Za-z0-9_-\.]*"/>
|
||||
<label
|
||||
@ -31,14 +32,14 @@
|
||||
for="renametoname">type in the new name for this file<br></label>
|
||||
<br><br><br>
|
||||
|
||||
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rename" type = "submit" value = "Rename" >
|
||||
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rename" type = "submit" title="Renames the file but disallows certain characters and replaces them, e.g. #, &, ?" value = "Rename" >
|
||||
Rename it
|
||||
</button>
|
||||
</form>
|
||||
<br />
|
||||
<form method ='post' >
|
||||
{% csrf_token %}
|
||||
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rotate" type = "submit" value = "Rotate" >
|
||||
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rotate" type = "submit" title="Rotates 90 degrees clockwise. JPG and PNG files only." value = "Rotate" >
|
||||
Rotate it
|
||||
</button>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user