How to download full image via link throught a html template?

Hello.
I have two photos sized 2479x3506.
I want to insert them on an A4 sheet (portrait) through a template. I put them, but the photos have a size of 600x849 and poor quality. I'd like good quality photos.

Image format - TEXT,
Image size when uploading - Full,
but the link at the end has "width=600"
<img src="https://www.appsheet.com/image/getimageurl?appName=Push_upp-......&amp;width=600

How to remove width=600 and upload full image?

My template's code:
================
<html>
<head>
<style>
*{margin:0;padding:0}body{text-align:center;max-width:21cm;margin:0 auto}img{width:100%;height:auto}.scan{display:inline-block;text-align:center;width:21cm;height:13cm;overflow:hidden}.scan a{display:inline-block;width:100%}
</style>
</head>
<body>
<p class="scan">
<a href="&lt;&lt;[Scan 1]&gt;&gt;">
<img src="&lt;&lt;[Scan 1]&gt;&gt;" alt="Scan 1"/>
</a>
</p>
<p class="scan">
<a href="&lt;&lt;[Scan 2]&gt;&gt;">
<img src="&lt;&lt;[Scan 2]&gt;&gt;" alt="Scan 2"/>
</a>
</p>
</body>
</html>

0 3 161
  • UX
3 REPLIES 3

Steve
Platinum 4
Platinum 4

Maybe this?

Steve_0-1650995766255.png

 

Thx. Here I have a TEXT. If a make IMAGE, then in my code I see:
<p><a href="...."

style=" width:1000px;height:1000px;

"></a></p> and etc.
I don't need any styles here, but...  And I can't remove them by AppSheet.

Now I wrote a script which change width=600 to width=1600, but from Google disk it's not work ((
Only from local machine.

<!DOCTYPE html>
<html lang="ru">

<head>
<style>
* {margin: 0;padding: 0}
body {text-align: center;max-width: 21cm;margin: 0 auto}
img {width: 100%;height: auto}
.scan {text-align: center;width: 21cm;height: 13cm;overflow: hidden}
.scan a {display: inline-block;width: 100%}
@Media print {.scan {display: inline-block}}
</style>
</head>
<body>
<p class="scan">
<a href="&lt;&lt;[ะกะบะฐะฝ ะœะ— ัั‚ะพั€ะพะฝะฐ 1]&gt;&gt;"> <img src="&lt;&lt;[ะกะบะฐะฝ ะœะ— ัั‚ะพั€ะพะฝะฐ 1]&gt;&gt;" alt="ะกะบะฐะฝ ะœะ— ัั‚ะพั€ะพะฝะฐ 1" /> </a>
</p>
<p class="scan">
<a href="&lt;&lt;[ะกะบะฐะฝ ะœะ— ัั‚ะพั€ะพะฝะฐ 2]&gt;&gt;"> <img src="&lt;&lt;[ะกะบะฐะฝ ะœะ— ัั‚ะพั€ะพะฝะฐ 2]&gt;&gt;" alt="ะกะบะฐะฝ ะœะ— ัั‚ะพั€ะพะฝะฐ 2" /> </a>
</p>
<script src="h t t p://s91806xs.beget.tech/exm/custom.js">
</script>
</body>
</html>

I tried to make a link to paste it in <img src="..." but got errors
1)
Tried:
<img src="CONCATENATE(
"https://www.appsheet.com/template/gettablefileurl",
"?appName=", ENCODEURL(CONTEXT("AppName")),
"&tableName=", ENCODEURL(CONTEXT("Table")),
"&fileName=", ENCODEURL([Scan 1])
)" alt="Scan 1"/>
Gotted:
Error 1 : 'Create HTML' task 'HTML create 1' Body template. Template could not be loaded due to exception: 'https' is an unexpected token. Expecting white space. Line 13, position 12.
Error 2 : The document body is empty

I think it's because of the quotes. Corrected.

2)
Tried:
<img src='CONCATENATE(
"https://www.appsheet.com/template/gettablefileurl",
"?appName=", ENCODEURL(CONTEXT("AppName")),
"&tableName=", ENCODEURL(CONTEXT("Table")),
"&fileName=", ENCODEURL([Scan 1])
)' alt='Scan 1'/>
Gotted:
Error 1 : 'Create HTML' task 'HTML create 1' Body template. Template could not be loaded due to exception: '=' is an unexpected token. The expected token is ';'. Line 15, position 22.
Error 2 : The document body is empty

It's this line. What's wrong again?
"&tableName=", ENCODEURL(CONTEXT("Table")),

Maybe, I need to specify the exact name of the table? Although the manual says to change the last value.
"Table" to "List1"?

P.S. I work with a remote client, so I don't get answers to my ideas very quickly.

Top Labels in this Space