Closed Bug 731102 Opened 13 years ago Closed 13 years ago

Apply image conversion script to all other uploaded images

Categories

(addons.mozilla.org Graveyard :: Code Quality, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: clouserw, Assigned: clouserw)

References

Details

So, over in bug 593267 there is a script (https://github.com/jbalogh/zamboni/commit/d3a8a4ae6921a20e22061036e40e753b4ec03dd4) which converts all the user images from gif/jpg to png. This is great, but it turns out our collection icons and screenshots and stuff are still filled with jpgs and gifs. We should review that script and run it on all the other user uploads too. If we don't do this before PHP is turned off, we'll have to bring along these embarrassing rewrites: > ## fallback on jpg or gif > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} .jpg$ > RewriteRule ^img/uploads/(.*)\.jpg$ /img/uploads/$1.gif [L] > > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} .png$ > RewriteRule ^img/uploads/(.*)\.png$ /img/uploads/$1.jpg [L,N]
This only affects collection_icons/ and previews/
Assignee: nobody → clouserw
Target Milestone: --- → 6.4.5
Patch for this is at https://github.com/clouserw/zamboni/commit/7a076585b2fcb7c64ed6d14c9478fcd25c04b6ec You can see the complete output after running on a clone of current production at khan:~clouserw/convert.out You can see the aftermath of the filesystem from the clone of production at khan:/tmp/clouserw until it gets GC'd
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.