Commit 81bb62dc authored by Ivan Tyagov's avatar Ivan Tyagov

image_resolution is now renamed to image_quality.

parent cf7c12a9
......@@ -146,12 +146,12 @@ class ImageFieldWidget(Widget.TextWidget):
image_object = field.getPortalObject().restrictedTraverse(path)
display = field.get_value('image_display')
format = field.get_value('image_format')
resolution = field.get_value('image_resolution')
quality = field.get_value('image_quality')
image_parameter_dict = {'format': format}
if display:
image_parameter_dict['display'] = display
if resolution:
image_parameter_dict['resolution'] = resolution
if quality:
image_parameter_dict['quality'] = quality
# convert the image using fields parameters. In this way, if an image
# is displayed in the form as a thumbnail, it will be added in the odg
# document as thumbnail size/quality
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment