Howdy,

I do love me some dummyimage and I was alerted via an electronic mail message that one of my favorite image sites, unsplash, just rolled out an image generator site: https://source.unsplash.com/

Not sure if another service is what this module needs, but I'm gonna submit a patch anyway.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tomgeekery created an issue. See original summary.

tomgeekery’s picture

Component: Miscellaneous » Code
Status: Active » Needs review
FileSize
2 KB

Here is the patch.

ao5357’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
40 KB

Ran tests to determine if the unsplash patch worked as intended:

  1. Installed fresh standard Drupal 7
  2. Installed dummyimage-7x-1-x-dev, placecage, devel, and devel_generate
  3. Added field_image to basic page and configured it to display large images at the teaser view mode
  4. Turned on and configured dummyimage to show Nic Cage for all images. Confirmed it worked
  5. Applied patch against dev
  6. Enabled unsplash, cleared cache, changed the placecage setting to unsplash
  7. Reloaded the test content -- images changed from cage to unsplash-looking photos
  8. Enabled core testing module and ran all tests -- results attached
  9. Downloaded/enabled coder and ran it against dummyimage and unsplash -- no errors for unsplash

Everything worked as expected. In testing, I found that there were quite a few errors and fails relating to files; this may be related to running dummyimage, but I do not believe the unsplash service specifically.

  • naxoc committed a8f0e9a on 7.x-1.x
    Issue #2617702 by tomgeekery: Unsplash
    
naxoc’s picture

Sweet! Committed. Thanks :)

I'm planning on making a release in not too long.