-
Notifications
You must be signed in to change notification settings - Fork 2
Custom wish images for birthday and anniversary
Under WISHING_APP_HOME lets create data folder.
Under data folder lets create the following structure
Add the following property into application.properties
file to provide the base location where images are loaded
Note : file: prefix is very important
app.image.base_path=file:data/images
Following keys needs to be defined.
Add the following to your application.properties
app.anniversary.years_count=5
app.anniversary.year1.image_count=5
app.anniversary.year2.image_count=5
app.anniversary.year3.image_count=5
app.anniversary.year4.image_count=5
app.anniversary.year5.image_count=5
app.anniversary.default.image_count=5
app.anniversary.years_count=5
means there are 5 folders for anniversary, starting from 1, then to 2, and then 3, and 4 and 5
app.anniversary.year1.image_count=5
means there are 5 images in folder 1 under images/anniversary
In general app.anniversary.year<index>.image_count=x
means there are x images under folder index of images/anniversary
app.anniversary.years_count=5
warrants defining the following five properties.
-
app.anniversary.year1.image_count
: number of images for year 1 -
app.anniversary.year2.image_count
: number of images for year 2 -
app.anniversary.year3.image_count
: number of images for year 3 -
app.anniversary.year4.image_count
: number of images for year 4 -
app.anniversary.year5.image_count
: number of images for year 5
Further you can change the image file extension with the following property
app.extension.image=jpeg