Database Reference
In-Depth Information
Examples of transformations
We will now discuss a few transformation examples.
Clickable thumbnail (.jpeg or .png)
We will start by changing our
cover_photo
field type from
BLOB
to
MEDIUMBLOB
to ensure that we can upload photographs, which that are bigger than 65 KB in size.
We then enter the following attributes:
Here, the options are presented in the form of width and height. If we omit the
options, the default values are 100 and 100. The thumbnail generation code preserves
the original aspect ratio of the image. Therefore, the values entered are the maximum
width and height of the generated image. We then upload a
.jpeg
file in a cell (using
instructions from Chapter 6). As a result, we get the following in
Browse
mode for
this table:
This thumbnail can be clicked to reveal the full-size photograph.
Search WWH ::
Custom Search