niwa / tsunami-db

Web interface for "The New Zealand Palaeo-tsunami Database"
0 stars 0 forks source link

Inconsistent URLs for normal and retina graphics #181

Closed tmfrnz closed 7 years ago

tmfrnz commented 7 years ago

There are some naming inconsistencies between the normal and retina versions, specifically for the travel time graphics, where a '_0' has been added to the normal versions,(likely due to CMS versioning). Eg the URL for the normal version for the tsunami stages graphic is http://content.niwa.co.nz/sites/default/files/tsunami-stages_0.png (with the added "_0") and for the retina version http://content.niwa.co.nz/sites/default/files/tsunami-stages@2x.png (unchanged) while the application will look for the non-existing http://content.niwa.co.nz/sites/default/files/tsunami-stages_0@2x.png.

Please let me know if naming consistency can be guaranteed on the server - if not we can have the client strip the appended "_0" away when appending the '@2x' (could also remove any other numbers if this could happen (_1, _2, etc).

craigstanton commented 7 years ago

I'm going to start looking at this now

craigstanton commented 7 years ago

Steps to fix and avoid the file name changes enforced by Drupal

  1. Remove old images from article on content.nwia.co.nz
  2. Save article
  3. Add images to article again

In our case because some of the content had been change to point to the _0 versions, the content also had tone changed back