Docstoc

Images

Document Sample
Images Powered By Docstoc
					CANDIDATE IMAGES

Below will be the physical images that will exist for each candidate

1) 40416383_ejam.jpg (compulsory)

- Raw image from eJamaat. Will be stored in “/raw” folder.

2) 40416383_thumb.jpg (compulsory)

- Thumbnail (bust) image of candidate, this could be from ejamaat or it could have been uploaded by the
candidate or counselor. Typically will be used on the Candidate Page for this candidate

Will be stored in “/res” folder, however the raw image (after uploading, before cropping) will be stored in
“/raw” folder as “40416383_thumb_raw.jpg”. This image is deleted once cropping is completed and the
final image is saved in the “res” folder.

3) 40416383_full.jpg (optional)

- This will be the full-length image of the candidate which would have been uploaded by the counselor /
candidate.

Will be stored in “/res” folder, however the raw image (after uploading, before cropping) will be stored in
“/raw” folder as “40416383_full_raw.jpg”. This image is deleted once cropping is completed and the final
image is saved in the “res” folder.


4) 40416383_family.jpg (optional)

- This will be the family image of the candidate which would have been uploaded by the counselor /
candidate.

Will be stored in “/res” folder, however the raw image (after uploading, before cropping) will be stored in
“/raw” folder as “40416383_family_raw.jpg”. This image is deleted once cropping is completed and the
final image is saved in the “res” folder.


TNC MEMBER IMAGES

Below will be the physical images that will exist for each tnc member

1) 40416383_ejam.jpg (compulsory)

- Raw image from eJamaat. Will be stored in “/raw” folder.

2) 40416383_thumb.jpg (compulsory)

- Thumbnail (bust) image of tnc member, this could be from ejamaat or it could have been uploaded by
the tnc member. Typically will be used on the Counselor Profile page for this candidate

Will be stored in “/res” folder, however the raw image (after uploading, before cropping) will be stored in
“/raw” folder as “40416383_thumb_raw.jpg”. This image is deleted once cropping is completed and the
final image is saved in the “res” folder.
STORAGE & DELIVERY OF IMAGES

1) As per "Architecture 3.0.ppt", all counselor and candidate images will be stored in "/res/". Raw images
   shall be stored in “/raw” folder.

2) Through htaccess we will block images from being directly accessible through the browser, for e.g. a
user will not be able to do "http://atb3.com/res/40416383_thumb.jpg" to see an image. Instead there will
be only a single file through which images will be displayed. For e.g. when I am displaying an image in
the html, I will write this code:

<img src="../pl_002_show_image.php?ejamaat=40416383&type=thumb&magnification=2">

This will cause the file "showImage.php" to run which in turn will pick up the image "40416383_thumb.jpg"
and display it with a magnification of 2, i.e. it will on-the-fly show the image in twice the size that it actually
is. If we wish to display the image smaller than it’s actual size, then we specify a magnification of less
than 1. This way we can on the fly deliver pictures in different sizes.

Note – the magnification only affects the display of the image and does not alter the physical image.

"showImage.php" will be having a built in check to determine if the user is logged in and whether he has
the privileges to see this image. This will prevent someone (who is not logged in and/or does not have
privileges to see this image) from simply copying the url
http://www.atb3.com/pl/pl_002_show_image.php?ejamaat=40416383&type=thumb in the browser to see
this image.

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:2
posted:1/21/2012
language:
pages:2