Legacy syntax how would i watermark a date with a comma in it?
First off... LOVE that this is part of the core...
i am in a 7.18 site... so using legacy syntax... and i want to add a date "February 15, 2015" to an image... with the comma separated syntax, how do i do that?
I'm afraid you can't.. Dave, I'm 99% sure I urldecoded before manipulating the parameters in old versions which was daft of me so that won't work.
The old syntax had restrictions on what kinds of characters you could pass through. One of the many, many reason I wrote the new parser.
I may be wrong but I'm fairly certain that if you edit your locally stored Umbraco package file nuspec embedded in the core .nupkg file you can trick Nuget into allowing you
to update past the version restriction.
Legacy syntax how would i watermark a date with a comma in it?
First off... LOVE that this is part of the core...
i am in a 7.18 site... so using legacy syntax... and i want to add a date "February 15, 2015" to an image... with the comma separated syntax, how do i do that?
thanks,
Hi Bob,
Did you try URL encoding your text ?
Dave
Hi Bob,
I'm afraid you can't.. Dave, I'm 99% sure I urldecoded before manipulating the parameters in old versions which was daft of me so that won't work.
The old syntax had restrictions on what kinds of characters you could pass through. One of the many, many reason I wrote the new parser.
I may be wrong but I'm fairly certain that if you edit your locally stored Umbraco package file nuspec embedded in the core .nupkg file you can trick Nuget into allowing you to update past the version restriction.
Cheers
James
oh, James, you are so cute... local stored umbraco package file ;)
what about on a live site... is it possible to update the imageprocessor version?
um, never mind... looks like this package does exactly what i wanted... will update my version... stand by for reports of awesome success ;)
okay, the upgrade appears to have worked... because it now accepts the new syntax... HOWEVER, still no comma... even when used as
February+15%2C+2015 -- any thoughts?
I just tested the string against the test website on Github without issue.
I used
February 15, 2015
in the url which the browser automatically encoded toFebruary%2015,%202015
The entire url was as follows:
localhost:9001/images/format-Penguins.png?width=300&watermark=February 15, 2015&color=fff&fontsize=48&fontstyle=italic&fontopacity=100&textposition=100,100&dropshadow=true&font=arial
Oh hold on
By "this package" you mean the one on here that I haven't updated in ages?
Yeah that won't work...
I'll update it asap.
okay, so how do i get v. latest running on my site? live site that is???
Well normally via Nuget...
I've updated the package file hosted here so you should be able to install it via that method now.
Let me know how you get on.
BOOM! sorted... thanks!!!
For you my dear, anything :D
is working on a reply...