Using IMG tags with image module

A common question is how to display images. In addition to other modules such as img_assist, you can also use img tag.

With clean URLs

<img src="http://www.example.org/image/view/##/preview" />
<img src="http://www.example.org/image/view/##/thumbnail" />

Without clean URLs

<img src="http://www.example.org/?q=image/view/##/preview" />
<img src="http://www.example.org/?q=image/view/##/thumbnail" />

If you go to admin >> settings >> image and look at the sizes, you will see a default name, preview and thumbnail. You can add and label other sizes as you choose.

If you want to link to your original image, the syntax is the same with the tag of _original.
With clean URLs

<img src="http://www.example.org/image/view/##/_original" />

without

<img src="http://www.example.org/?q=image/view/##/_original" />

With clean URLs it is possible to use relative paths for the image URL. For example:

<img src="/image/view/##/_original" />

So, to break it down, sitename / image / view / image ID# / label will get you to an image suitable for use in an <img src=""> tag. If you add additional sizes to the your image module settings, you can link to them by their label names as well.

Finalize the upgrade

Congratulations! You have completely upgraded your Drupal installation.

Depending on your site, you may need to log in using the following URL: http://example.com/?q=user

You should now go to your administer > site building > modules page and enable new modules from your upgrade. Be sure to then go to administer > user management > access control to enable permissions to use that module for different roles.

Pages

Subscribe with RSS Subscribe to RSS - Needs copy/style review