lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Logo on group quotes but not illustrations


From: Vadim Zeitlin
Subject: Re: [lmi] Logo on group quotes but not illustrations
Date: Thu, 23 Aug 2018 14:52:26 +0200

On Thu, 23 Aug 2018 00:00:44 +0000 Greg Chicares <address@hidden> wrote:

[...]
GC> OTOH, production PDFs should always
GC> have such graphics: in production, their absence should be a hard error.
GC> Well, if dogs can venture into the cosmos, then surely I can solve a
GC> problem like this. Now all I need to do is move those cosmic PNGs from
GC> gwc/ into its parent directory, and then make their absence a hard error,
GC> i.e., alarum() instead of warning().
GC> 
GC> But I can't do that until they fit on the cover page: if I do it now,
GC> I can't create illustration PDFs myself. What's a tidy solution to that
GC> problem? Must I really shrink 'company_logo.png', e.g., with the GIMP?

 You could do this. Or you could remove a couple of "<br></br>" from
cover.mst to make it fit. If you do the latter, it would move the footer in
the official illustrations (or, rather, illustrations using official logos)
upwards, however, which might be undesirable.

 Finally, you could also experiment with just fixing the size of the image
in pixels in cover.mst. If official logos always use the same size, this
would be the best solution, even if it's going to badly distort the dogs
(but this wouldn't be the worst thing to have happened to them).

 And if we need to handle images of any size, then the only solution I see
is to partially move the cover page implementation into C++ code, as I'm
pretty sure we can't vertically center an image properly using just HTML
(this used to be one of the Big Problems of the web design, which always
made us, desktop developers, just slightly condescending as, compared with
sending a dog to the cosmos, it really doesn't sound like such a big deal.
But it has been finally fixed since a couple of years, so now we need to
find other reasons for being condescending which is getting pretty hard as
web technologies eat everything else alive and entire generations of
programmers grow up knowing nothing but JavaScript... but I digress).
Please let me know if I should do this.

GC> Is the PNG height the crucial parameter? For instance, would any PNG with
GC> a height of forty pixels be enough to avoid assertion failures?

 This is just a trial and error thing, so I'm not sure, but I guess so,
yes.


GC> I think the logo is missing for the 'sample2?pp.*' products. It should
GC> be on the cover page for all formats. If you're looking for things to
GC> do, this needs doing.

 The logo presence or absence is defined just by the illustration type and
not the product per se, so I assume what you're saying is that sample2?pp
products use "reg d individual" illustration types, which don't use the
standard cover page defined in cover.mst but their own version of it from
reg_d_indiv_cover_page.mst.

 So do you ask me to modify that file? I'm a bit apprehensive as it's not
exactly obvious where should the logo be added to that page, as there is
not that much free space on it and, more generally speaking, I just have no
idea how is the cover page supposed to look like (remember, that I just see
the placeholders instead of the real values of the various fields, so I
don't know how much space each of them takes). I think it would be much
better if someone else could do it, it's a trivial change (basically just
copy the <img> tag from cover.mst to that file), but deciding on the
desired appearance is not trivial, at least for me.

 Regards,
VZ


reply via email to

[Prev in Thread] Current Thread [Next in Thread]