small edit: missed your question at the beginning: ShareX is more or less a screenshot application, which can give me the option to upload the screenshot taken, and a ton of other things, I'm fairly certain zenphoto cannot do that, and I would rather not have to upload every screenshot I take as I would be using Imgur if I wanted to.
https://getsharex.com/ - You should be able to see/learn about it here, and/or try it yourself. But in simple terms, it lets me upload my images directly to my webserver/zenphoto, as it's ustilizing a php file.
I actually made that mistake of uploading to the cache folder when testing, but altered the php file to upload to the same location (being albums/sharex) and had it return a link with cache/sharex/whatever.
But the problem with the resized url version the watermark isn't png, and seems to be jpg or something, as the watermark has no transparency.
Ex.
[code]https://aeswere.ca/gallery/cache/ShareX/r4ulrpzk76_FULL_Logo.png[/code] - Link ShareX copies to my clipboard, turns into:
[code]https://aeswere.ca/gallery/cache/ShareX/r4ulrpzk76_1920_Logo_FULL.png[/code]
[code]https://aeswere.ca/gallery/cache/ShareX/r4ulrpzk76_FULL_Logo.png[/code] - Proper link you get when going though zenphoto/the gallery.
[code]$domain_url.$cachedir.$filename.$watermark.'.'.$fileType;[/code]
being the link that gets returned to me/my clipboard, altered from
[code]$domain_url.$sharexdir.$filename.'.'.$fileType;[/code]
and assuming
[code]if (move_uploaded_file($_FILES["sharex"]["tmp_name"], $sharexdir.$filename.'.'.$fileType))[/code]
is the line that actually moves the file to the correct directory, being the album iteself.
As for the why I wanted to use the cache link, was because I'd like the watermark to exist to the url I share. aka a direct link w/ watermark, instead of it not having it.
Edit after typing up everything above:
I changed cache to albums to see if it would work and it doesn't, because the image has to be cached (afaik) for the watermark to work.
Another example:
[code]https://aeswere.ca/gallery/albums/ShareX/xwgtrtowcq_FULL_Logo.png[/code]
this link does not work.
but [code]https://aeswere.ca/gallery/cache/ShareX/xwgtrtowcq_FULL_Logo.png[/code]
does although redirected to the resized url.