Add Local Avatar
Found glitch. original image not written to server if size matches the default (2 posts)

  1. DougJoseph
    Posted 3 years ago #

    Dear Peter

    Found a glitch.

    Steps to reproduce:

    I made a minor tweak to the code - where the hardcoded size was 80 pixels. I changed it to 140. I believe the same problem should exist even if this tweak is not made, except at 80 pixels instead of 140.

    Everything was working fine. The plugin has always been creating two files on the server: one with the original file name, and another with "avatar" appended onto the file name.

    Then I happened to try to upload an avatar of this size: 140 x140. Exactly the default size.

    When I did, the "original" file never got written, but the one with "avatar" appended onto the name did get written.

    I then tried to upload an avatar that was slightly larger (240x240) and that time both files got written.

    Note: When using a file of size 140x140, and with the original file not getting written, it makes the "cropping" feature of the dialogue box display "broken link" X's because it cannot find the "original" file on the server.


  2. DougJoseph
    Posted 3 years ago #

    I should add that:

    I have user uploads allowed.
    I have "Resize uploads" set to True.
    I have checked to "pad images smaller than resize set below with a white background?"

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Add Local Avatar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.