-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make only outer edge of achivements images transparent and fix a miss… #2665
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this binary file courses.dist/modelCourse/html/.DS_store
doing, probably something on your end that sneaked into the PR?
2afc5e6
to
7a31cc9
Compare
Thanks for seeing that. It's a MacOS file that (I think) stores metadata for a folder. It get created if you visit a folder using Finder. I did this on my local machine instead of on the PCC development server since it was easier to maniuplate images that way, and this snuck in. |
The |
For most of these, I had ImageMagick:
That did not work for a few of them like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I marked this as needing a comment in release notes. We need to make sure that the updated files get copied into the model course as well as any course using achievements. Otherwise no one will see the benefits of this pull request!
For several reasons, I think that we could look into centralizing these image files and the For one thing, it's the point you make, that courses propagate with old versions of things. There's not much to be done about that since an old course can be unarchived at any time. The release notes will help but people will forget. (I have the same issue with the course Also it's a bit wasteful to have these image files copied in course after course after course, then kept in archive after archive. I took a course archive file, unpacked it, deleted the achievements stuff, and re-zipped it. The archive file went down from 2.0MB to 1.1MB. That would be a big effect over lots of courses over the years. |
I was thinking the same thing, and completely agree. |
…pelling
In the thread for #2579, @drgrice1 observed issues with the transparency for certain achievement images. I think the changes here address that.
While doing this I saw "persistance" used repeatedly instead of "persistence", so I changed them all to "persistence".
One more thing. On MacOS, it turns out that when a directory has name with a
.dist
extension, MacOS thinks it is a certain special kind of file instead of thinking it is a directory. For example, I could notcd
into this folder until I renamed it temporarily. Would there be any objection to renamingcourses.dist
to something else? And if not, what is a good name? I could add that change to this PR (although it is only loosely related and could be separate).