Copied to clipboard

Flag this post as spam?

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


  • Dan Evans 629 posts 1016 karma points
    Mar 16, 2017 @ 09:00
    Dan Evans
    0

    Comma in image name causes error in Chrome

    There is a known issue with Chrome with commas in file and image names:

    https://answers.nuxeo.com/general/q/d8348e07fe5e441183bae07dfda00e40/Comma-in-file-name-cause-problem-in-Chrome-Browser

    In ImageGen if the image has a comma in the filename it is not displayed in Chrome. I am not in a position to be able to rename files for various reasons so is there a way around this to allow ImageGen to display the file in Chrome with a comma?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 16, 2017 @ 09:07
    Douglas Robar
    0

    Thanks for the report, Dan. Let me look into it and see what might be done to resolve it.

    To help me reproduce the issue:
    - what is the filename you're using that causes the problem?
    - what are the querystring parameters you're using with imagegen.ashx that cause the problem?
    - anything else I should know to help me reproduce this?

    Thanks!

    cheers,
    doug.

  • Dan Evans 629 posts 1016 karma points
    Mar 16, 2017 @ 09:12
    Dan Evans
    0

    Hi Doug,

    Thanks for the quick response. Any image with a comma in the filename will cause the problem in Chrome. I tried URL encoding the comma but the result is the same.

    For example: http://www.matthews-goodman.co.uk/umbraco/ImageGen.ashx?width=142&height=100&crop=resize&align=center&image=/WebDBCtrls/propFiles/5.%20Linley%20Point,%20Alsager%20front%20page%20secondary%204.jpg

    This article explains workarounds but they are for file attachments:

    http://www.dotnetspider.com/forum/340534-How-to-Solve-this-Duplicate-Response-I-ssue.aspx

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 16, 2017 @ 09:53
    Douglas Robar
    0

    I'm having a great day! Why? Because it's already fixed :)

    You're running a very old version of ImageGen. Grab the latest (v 2.9.3 currently) and all will be well. You'll get much better performance and also no problem with commas.

    Because your'e using such an older version I'd recommend removing it manually and then installing the latest version afresh.

    Remove old ImageGen:

    • (backups are up to date, right? right!)
    • Remove the entries in \web.config that refer to ImageGen
    • Delete the \imagegen.* and \bin\imagegen.* and \umbraco\imagegen.* files
    • Save the contents of the \config\imagegen.config file, we'll reuse it once we've installed the new version of ImageGen
    • Find and delete all the cached folders.

    Install latest ImageGen:

    • Install the package as usual, from the Developer section of the back office in the Packages section.
    • Add your customisations from the saved \config\imagegen.config file into the default imagegen.config file to activate ImageGen Professional for your domain(s), restore your custom classes and other settings.

    You'll want to look at some of the new features of ImageGen Professional, such as client-side caching for maximum performance. Details in the PDF docs for 2.9.

    Shout with any questions.

    cheers,
    doug.

  • Dan Evans 629 posts 1016 karma points
    Mar 16, 2017 @ 09:56
    Dan Evans
    0

    Hooray! I'll try that later - it's a very old site!

    Thanks

    Dan

Please Sign in or register to post replies

Write your reply to:

Draft