Skip to content

Commit

Permalink
fix: Replace Rectangle-only image with an image that can work with sq…
Browse files Browse the repository at this point in the history
…uare cropping

The original tpu thumbnail did not work well with new square crop on Quince
and beyond versions of Open edX® LMS.

Copied from: openedx-unsupported/openedx-demo-course-new#6

Co-Authored-By: John Swope <[email protected]>
  • Loading branch information
kdmccormick and jswope00 committed Feb 6, 2024
1 parent 2d97122 commit 85aa9b1
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo-course/course/course/demo_course.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<course advanced_modules="[&quot;edx_sga&quot;, &quot;lti&quot;, &quot;scorm&quot;, &quot;library_content&quot;, &quot;annotatable&quot;, &quot;poll&quot;, &quot;survey&quot;]" allow_anonymous="true" allow_anonymous_to_peers="true" cert_html_view_enabled="true" course_image="thumbnail_draft.png" discussions_settings="{&quot;enable_in_context&quot;: true, &quot;enable_graded_units&quot;: false, &quot;unit_level_visibility&quot;: true, &quot;provider_type&quot;: &quot;legacy&quot;, &quot;legacy&quot;: {&quot;group_at_subsection&quot;: false}}" display_name="Open edX Demo Course" enable_subsection_gating="true" graceperiod="" instructor_info="{&quot;instructors&quot;: []}" language="en" learning_info="[]" lti_passports="[&quot;codeboard:codeboard_key_1:codeboard_secret_1234&quot;, &quot;jupyter:811a447706c152588c436ee13addeeb889e7f256033679408737bd5bc4118225:869e9639af7de74929b13ae17ad22e4efb60d9d112143e287589289102e1de00&quot;]" minimum_grade_credit="0.8" self_paced="true" start="2020-01-01T00:00:00Z" teams_configuration="{&quot;topics&quot;: [{&quot;description&quot;: &quot;A place to join groups that would like to socialize&quot;, &quot;name&quot;: &quot;Social&quot;, &quot;id&quot;: &quot;social&quot;}, {&quot;description&quot;: &quot;A place to join groups that want to organize around specific study topics&quot;, &quot;name&quot;: &quot;Study&quot;, &quot;id&quot;: &quot;study&quot;}], &quot;max_team_size&quot;: 10}" user_partitions="[{&quot;id&quot;: 18587404, &quot;name&quot;: &quot;Content Groups&quot;, &quot;scheme&quot;: &quot;cohort&quot;, &quot;description&quot;: &quot;The groups in this configuration can be mapped to cohorts in the Instructor Dashboard.&quot;, &quot;parameters&quot;: {}, &quot;groups&quot;: [{&quot;id&quot;: 1819362822, &quot;name&quot;: &quot;Content Group A&quot;, &quot;version&quot;: 1}, {&quot;id&quot;: 259161138, &quot;name&quot;: &quot;Test&quot;, &quot;version&quot;: 1}, {&quot;id&quot;: 205150518, &quot;name&quot;: &quot;Content Group B&quot;, &quot;version&quot;: 1}], &quot;active&quot;: true, &quot;version&quot;: 3}]">
<course advanced_modules="[&quot;edx_sga&quot;, &quot;lti&quot;, &quot;scorm&quot;, &quot;library_content&quot;, &quot;annotatable&quot;, &quot;poll&quot;, &quot;survey&quot;]" allow_anonymous="true" allow_anonymous_to_peers="true" cert_html_view_enabled="true" course_image="thumbnail_demox.jpeg" discussions_settings="{&quot;enable_in_context&quot;: true, &quot;enable_graded_units&quot;: false, &quot;unit_level_visibility&quot;: true, &quot;provider_type&quot;: &quot;legacy&quot;, &quot;legacy&quot;: {&quot;group_at_subsection&quot;: false}}" display_name="Open edX Demo Course" enable_subsection_gating="true" graceperiod="" instructor_info="{&quot;instructors&quot;: []}" language="en" learning_info="[]" lti_passports="[&quot;codeboard:codeboard_key_1:codeboard_secret_1234&quot;, &quot;jupyter:811a447706c152588c436ee13addeeb889e7f256033679408737bd5bc4118225:869e9639af7de74929b13ae17ad22e4efb60d9d112143e287589289102e1de00&quot;]" minimum_grade_credit="0.8" self_paced="true" start="2020-01-01T00:00:00Z" teams_configuration="{&quot;topics&quot;: [{&quot;description&quot;: &quot;A place to join groups that would like to socialize&quot;, &quot;name&quot;: &quot;Social&quot;, &quot;id&quot;: &quot;social&quot;}, {&quot;description&quot;: &quot;A place to join groups that want to organize around specific study topics&quot;, &quot;name&quot;: &quot;Study&quot;, &quot;id&quot;: &quot;study&quot;}], &quot;max_team_size&quot;: 10}" user_partitions="[{&quot;id&quot;: 18587404, &quot;name&quot;: &quot;Content Groups&quot;, &quot;scheme&quot;: &quot;cohort&quot;, &quot;description&quot;: &quot;The groups in this configuration can be mapped to cohorts in the Instructor Dashboard.&quot;, &quot;parameters&quot;: {}, &quot;groups&quot;: [{&quot;id&quot;: 1819362822, &quot;name&quot;: &quot;Content Group A&quot;, &quot;version&quot;: 1}, {&quot;id&quot;: 259161138, &quot;name&quot;: &quot;Test&quot;, &quot;version&quot;: 1}, {&quot;id&quot;: 205150518, &quot;name&quot;: &quot;Content Group B&quot;, &quot;version&quot;: 1}], &quot;active&quot;: true, &quot;version&quot;: 3}]">
<chapter url_name="30b3fbb840024953b2d4b2e700a53002"/>
<chapter url_name="35283385dd4947619c558f8bb888a031"/>
<chapter url_name="d6780558bc3042c7ab6dd441a06d3478"/>
Expand Down
24 changes: 24 additions & 0 deletions demo-course/course/policies/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2421,6 +2421,30 @@
null
]
},
"thumbnail_demox.jpeg": {
"contentType": "image/jpeg",
"content_son": {
"category": "asset",
"course": "DemoX",
"name": "thumbnail_demox.jpeg",
"org": "Axim",
"revision": null,
"run": "demo_course",
"tag": "c4x"
},
"displayname": "thumbnail_demox.jpeg",
"filename": "asset-v1:Axim+DemoX+demo_course+type@asset+block@thumbnail_demox.jpeg",
"import_path": null,
"locked": false,
"thumbnail_location": [
"c4x",
"Axim",
"DemoX",
"thumbnail",
"thumbnail_demox-jpeg.jpg",
null
]
},
"thumbnail_draft.png": {
"contentType": "image/png",
"content_son": {
Expand Down
2 changes: 1 addition & 1 deletion demo-course/course/policies/demo_course/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"allow_anonymous": true,
"allow_anonymous_to_peers": true,
"cert_html_view_enabled": true,
"course_image": "thumbnail_draft.png",
"course_image": "thumbnail_demox.jpeg",
"discussion_blackouts": [],
"discussion_topics": {
"General": {
Expand Down
Binary file added demo-course/course/static/thumbnail_demox.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/demo-course.tar.gz
Binary file not shown.

0 comments on commit 85aa9b1

Please sign in to comment.