Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


This forum is in read only mode, you can no longer reply
  • bob baty-barr 1180 posts 1294 karma points MVP
    Apr 23, 2015 @ 15:09
    bob baty-barr
    0

    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,

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Apr 23, 2015 @ 15:15
    Dave Woestenborghs
    1

    Hi Bob,

    Did you try URL encoding your text ?

    Dave

  • James Jackson-South 489 posts 1747 karma points c-trib
    Apr 23, 2015 @ 15:17
    James Jackson-South
    1

    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

  • bob baty-barr 1180 posts 1294 karma points MVP
    Apr 23, 2015 @ 15:57
    bob baty-barr
    0

    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?

  • bob baty-barr 1180 posts 1294 karma points MVP
    Apr 23, 2015 @ 16:00
    bob baty-barr
    0

    um, never mind... looks like this package does exactly what i wanted... will update my version... stand by for reports of awesome success ;)

  • bob baty-barr 1180 posts 1294 karma points MVP
    Apr 23, 2015 @ 16:06
    bob baty-barr
    0

    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?

  • James Jackson-South 489 posts 1747 karma points c-trib
    Apr 23, 2015 @ 16:42
    James Jackson-South
    0

    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 to February%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.

  • bob baty-barr 1180 posts 1294 karma points MVP
    Apr 23, 2015 @ 17:03
    bob baty-barr
    0

    okay, so how do i get v. latest running on my site? live site that is???

  • James Jackson-South 489 posts 1747 karma points c-trib
    Apr 23, 2015 @ 17:41
    James Jackson-South
    100

    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.

  • bob baty-barr 1180 posts 1294 karma points MVP
    Apr 23, 2015 @ 17:54
    bob baty-barr
    0

    BOOM! sorted... thanks!!!

  • James Jackson-South 489 posts 1747 karma points c-trib
    Apr 23, 2015 @ 18:01
    James Jackson-South
    1

    For you my dear, anything :D

Please Sign in or register to post replies

Write your reply to:

Draft