Changing Passport Image Dimensions and Size: Difference between revisions

From IHRIS Wiki
(Created page with "In this tutorial we show how to resize the dimensions of the images you are uploading to iHRIS Manage or iHRIS Qualify. Take note that resizing the dimensions (width and length) ...")
 
Line 5: Line 5:
In order to be able to resize the image, we need to define the form field to be of type PASSPORT like here
In order to be able to resize the image, we need to define the form field to be of type PASSPORT like here
Now change the lines:
Now change the lines:
<source lang='xml'>
<!--<source lang='xml'>-->
     <configurationGroup name="forms" path="/modules/forms">
     <configurationGroup name="forms" path="/modules/forms">
       <configurationGroup name="formClasses">
       <configurationGroup name="formClasses">
Line 13: Line 13:
             <configurationGroup name="passport">
             <configurationGroup name="passport">
               <configurationGroup name="meta">
               <configurationGroup name="meta">
                 <configuration name="max_height">
                 <span style='color:olive'><configuration name="max_height"></span>
                   <value>128</value>
                   <span style='color:red'><value><span style='color:green'>128</span></value></span>
                 </configuration>
                 <span style='color:olive'></configuration></span>
                 <configuration name="max_width">
                 <span style='color:olive'><configuration name="max_width"></span>
                   <value>136</value>
                   <span style='color:red'><value><span style='color:green'>136</span></value></span>
                 </configuration>
                 <span style='color:olive'></configuration></span>
               </configurationGroup>
               </configurationGroup>
               <displayName>The field 'address'</displayName>
               <displayName>The field 'address'</displayName>
               <configuration name="formfield">
               <configuration name="formfield">
                 <displayName>The form field type</displayName>
                 <displayName>The form field type</displayName>
                 <value>PASSPORT</value>
                 <span style='color:green'><value>PASSPORT</value></span>
               </configuration>
               </configuration>
               <configuration name="headers" type="delimited" locale="en_US">
               <configuration name="headers" type="delimited" locale="en_US">
Line 35: Line 35:
     </configurationGroup>
     </configurationGroup>
   <!--  End /modules/forms -->
   <!--  End /modules/forms -->
</source>
<!--</source>-->


==Changing the dimensions==
==Changing the dimensions==
In order to change the dimensions, you need to include a meta tag when defining the field. In it you specify the maximum width and maximum height for the passport photo. However if you don't need to affect the dimensions i.e. height and width you set the values for max_height and max_width equal to zero. Setting these values to zero only affects the size of the image and keeps the dimensions from the original image.
In order to change the dimensions, you need to include a meta tag when defining the field. In it you specify the maximum width and maximum height for the passport photo. However if you don't need to affect the dimensions i.e. height and width you set the values for max_height and max_width equal to zero. Setting these values to zero only affects the size of the image and keeps the dimensions from the original image.

Revision as of 06:36, 11 August 2012

In this tutorial we show how to resize the dimensions of the images you are uploading to iHRIS Manage or iHRIS Qualify. Take note that resizing the dimensions (width and length) goes further to reducing the image size.


Defining the form field

In order to be able to resize the image, we need to define the form field to be of type PASSPORT like here Now change the lines:

   <configurationGroup name="forms" path="/modules/forms">
     <configurationGroup name="formClasses">
       <configurationGroup name="iHRIS_Passport">
         <configurationGroup name="fields">
           <displayName>The fields defined for this form</displayName>
           <configurationGroup name="passport">
             <configurationGroup name="meta">
               <configuration name="max_height">
                 <value>128</value>
               </configuration>
               <configuration name="max_width">
                 <value>136</value>
               </configuration>
             </configurationGroup>
             <displayName>The field 'address'</displayName>
             <configuration name="formfield">
               <displayName>The form field type</displayName>
               <value>PASSPORT</value>
             </configuration>
             <configuration name="headers" type="delimited" locale="en_US">
               <displayName>The headers for this field.</displayName>
               <value>default:Passport</value>
             </configuration>
           </configurationGroup>
         </configurationGroup>
       </configurationGroup>
     </configurationGroup>
   </configurationGroup>

Changing the dimensions

In order to change the dimensions, you need to include a meta tag when defining the field. In it you specify the maximum width and maximum height for the passport photo. However if you don't need to affect the dimensions i.e. height and width you set the values for max_height and max_width equal to zero. Setting these values to zero only affects the size of the image and keeps the dimensions from the original image.