Need ability to specify size for image

Asked by Mikhail Denisenko

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(self.importPath, self.format)
> if width != None:
221,225c219
< width, height = getSize(self.importPath, self.format)
< 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:
Revision history for this message
Gaëtan Delannay (gaetan-delannay) said :
#1

Hi, this sounds nice to me. I will include this in the future version, I don't remember if it already corresponds to an existing blueprint in section" blueprints"... Before publishing Appy 0.7.1, may I send you a beta version that you could test on Windows? No planning yet for this release...
Cheers
Gaetan

Revision history for this message
Mikhail Denisenko (denisenkom) said :
#2

Hi
Sure I will test it, thanks!
Mikhail

2011/9/21 Gaëtan Delannay <email address hidden>

> Your question #171846 on Appy changed:
> https://answers.launchpad.net/appy/+question/171846
>
> Status: Open => Answered
>
> Gaëtan Delannay proposed the following answer:
> Hi, this sounds nice to me. I will include this in the future version, I
> don't remember if it already corresponds to an existing blueprint in
> section" blueprints"... Before publishing Appy 0.7.1, may I send you a beta
> version that you could test on Windows? No planning yet for this release...
> Cheers
> Gaetan
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/appy/+question/171846/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/appy/+question/171846
>
> You received this question notification because you asked the question.
>

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.