Is there a way to modify valuesets that contain images? I have found that copying new image files into the files named in the valueset in the dictionary works, but I have not found any way to change the labels or values that appear next to the images when the valueset is displayed.
Also, is there a way to get the display of the images to work properly when the valueset contains images of different sizes? For example, if one of the pictures is 216 x 143 pixels while the others are 128 x 128 pixels, then only the 216 x 143 pixels image is displayed.
Thank you,
Becklesd
Mdifying valuesets that contain images
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Mdifying valuesets that contain images
Value Set Images is a feature that was added to CSPro a while back and was never fully implemented. That's why you have to go through the route of manually modifying the dictionary file to enable the feature. That shows you how little confidence we have in the feature.
When you call the setvalueset function in logic to modify the values of a value set, a brand new value set gets created and so all of the image links that existed in the previous iteration of the value set are lost. There is no way, therefore, to modify the values of a value set with images.
That said, this is eventually a feature that we will want to clean up, because it will be very useful for CAPI surveys on the Android version.
Regarding using value set images of different sizes ... you are right that that does not work now. It is a bug that results from Windows not allowing different sized images in lists. I'll fix this for the next release so that the images are resized behind the scenes so that they will all be the same size. That will come out in version 5.0.2.
When you call the setvalueset function in logic to modify the values of a value set, a brand new value set gets created and so all of the image links that existed in the previous iteration of the value set are lost. There is no way, therefore, to modify the values of a value set with images.
That said, this is eventually a feature that we will want to clean up, because it will be very useful for CAPI surveys on the Android version.
Regarding using value set images of different sizes ... you are right that that does not work now. It is a bug that results from Windows not allowing different sized images in lists. I'll fix this for the next release so that the images are resized behind the scenes so that they will all be the same size. That will come out in version 5.0.2.
-
becklesd
- Posts: 14
- Joined: June 11th, 2012, 5:25 pm
Re: Mdifying valuesets that contain images
Thanks for your reply.
BecklesD
BecklesD
-
arronlee
- Posts: 6
- Joined: July 5th, 2013, 12:12 am
Re: Mdifying valuesets that contain images
Hi, Becklesd.
Have you ever worked it out? How does it work? When it comes to the image resizing problem, I have another question for you. I wonder how can I accomplish the image resizing process . Do I need another image resizing SDK to help customize the size of images ? I am almost a green hand here. Any suggestion will be appreciated. Thanks in advance.
Best regards,
Arron
Have you ever worked it out? How does it work? When it comes to the image resizing problem, I have another question for you. I wonder how can I accomplish the image resizing process . Do I need another image resizing SDK to help customize the size of images ? I am almost a green hand here. Any suggestion will be appreciated. Thanks in advance.
Best regards,
Arron
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Mdifying valuesets that contain images
Value set images will have a major improvement in version 6.2 beta including support for images of different sizes.
In the meantime, the easiest way to resize images is to use the paint program that comes with Windows.
In the meantime, the easiest way to resize images is to use the paint program that comes with Windows.
-
htuser
- Posts: 687
- Joined: December 19th, 2011, 6:26 pm
- Location: Silver Spring Area, MD, USA
Re: Mdifying valuesets that contain images
Dear Josh,
When can we expect to download this beta? Can you inform us about new function already developed in this beta?
Do you think that we'll have theses function in the 6.2 final release:
1.- For detect internet connection (netdetect),
2.- Calculate internet speed in kb/s(internetspeed),
3.- Track (identify) modified and new case
4.- Sync only modified and new case,
5.- Last sync time,
Best regards
When can we expect to download this beta? Can you inform us about new function already developed in this beta?
Do you think that we'll have theses function in the 6.2 final release:
1.- For detect internet connection (netdetect),
2.- Calculate internet speed in kb/s(internetspeed),
3.- Track (identify) modified and new case
4.- Sync only modified and new case,
5.- Last sync time,
Best regards
G.VOLNY, a CSProuser from Haiti, since 2004