Need ability to specify size for image
I am sorry if this is wrong place to make a feature request.
I need an ability to control the size of the image. I think this can be a useful feature to add to main distribution
Here my proposed changes:
=======
file: renderer.py
-------
262,263c262
< anchor='as-char', wrapInPara=True,
< size=None):
---
> anchor='as-char', wrapInPara=True):
268,270c267
< p_wrapInPara are only relevant for images.
< size can be a tuple (width, height) that specify size of an image
< in centimeters'''
---
> p_wrapInPara are only relevant for images.'''
297,298c294
< imp = importer(content, at, format, self.tempFolder, ns, self.fileNames,
< size=size)
---
> imp = importer(content, at, format, self.tempFolder, ns, self.fileNames)
=======
file: doc_importers.py
-------
34c34
< def __init__(self, content, at, format, tempFolder, ns, fileNames, size=None):
---
> def __init__(self, content, at, format, tempFolder, ns, fileNames):
36d35
< self.size = size
217,218c215,216
< if self.size:
< width, height = self.size
---
> width, height = getSize(
> if width != None:
221,225c219
< width, height = getSize(
< if width != None:
< size = ' %s:width="%fcm" %s:height="%fcm"' % (s, width, s, height)
< else:
< size = ''
---
> size = ''
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Appy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: