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): ...@@ -146,12 +146,12 @@ class ImageFieldWidget(Widget.TextWidget):
image_object = field.getPortalObject().restrictedTraverse(path) image_object = field.getPortalObject().restrictedTraverse(path)
display = field.get_value('image_display') display = field.get_value('image_display')
format = field.get_value('image_format') format = field.get_value('image_format')
resolution = field.get_value('image_resolution') quality = field.get_value('image_quality')
image_parameter_dict = {'format': format} image_parameter_dict = {'format': format}
if display: if display:
image_parameter_dict['display'] = display image_parameter_dict['display'] = display
if resolution: if quality:
image_parameter_dict['resolution'] = resolution image_parameter_dict['quality'] = quality
# convert the image using fields parameters. In this way, if an image # 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 # is displayed in the form as a thumbnail, it will be added in the odg
# document as thumbnail size/quality # 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