LDraw.org Discussion Forums
LPub3D: Output resolution change? - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw File Processing and Conversion (https://forums.ldraw.org/forum-22.html)
+--- Thread: LPub3D: Output resolution change? (/thread-23525.html)

Pages: 1 2 3


LPub3D: Output resolution change? - Philippe Hurbain - 2019-07-01

Is there a way to change output resolution of LPub3D to generate the same building instructions with a low resolution for web usage, and high resolution for printing purpose?
Configuration -> Build instructions setup -> Project setup -> resolution almost does the trick but completely changes the layout because font and image sizes are changed too!


RE: LPub3D: Output resolution change? - Tatubias - 2019-07-01

(2019-07-01, 13:12)Philippe Hurbain Wrote: Is there a way to change output resolution of LPub3D to generate the same building instructions with a low resolution for web usage, and high resolution for printing purpose?
Configuration -> Build instructions setup -> Project setup -> resolution almost does the trick but completely changes the layout because font and image sizes are changed too!
I did not find one.

What i did was export in png, then open the files on xnview and batch a proccess to lower the resolution , convey tojpg if you want, make size smaller the file, add water mark, sharp image. And many other tweaks


RE: LPub3D: Output resolution change? - Philippe Hurbain - 2019-07-01

(2019-07-01, 13:33)Victor Di Rienzo Wrote: I did not find one.

What i did was export in png, then open the files on xnview and batch a proccess to lower the resolution , convey tojpg if you want, make size smaller the file, add water mark, sharp image. And many other tweaks
Thanks Victor! I somehow expected a more direct method, but it works...


RE: LPub3D: Output resolution change? - Tatubias - 2019-07-02

(2019-07-01, 17:56)Philippe Hurbain Wrote: Thanks Victor! I somehow expected a more direct method, but it works...

Keep in mind you can  save the procees as a template and with 3 clcks you can do all again.


Tomorrow i can show you in video conference


RE: LPub3D: Output resolution change? - Trevor Sandy - 2019-07-03

(2019-07-01, 13:12)Philippe Hurbain Wrote: Is there a way to change output resolution of LPub3D to generate the same building instructions with a low resolution for web usage, and high resolution for printing purpose?

To be sure I well understand this question, would scaling the generated instruction page(s) to a certain size satisfy your requirement for web publishing ? For example, if all your pages are of uniform size then a desired width/height setting could be specified or if your instructions are of different page sizes, then a percentage of page size would be more appropriate.

Of course, this capability would not apply to the PDF export, only png, jpg and possibly bmp exports.

Cheers,


RE: LPub3D: Output resolution change? - Philippe Hurbain - 2019-07-03

(2019-07-03, 12:38)Trevor Sandy Wrote: To be sure I well understand this question, would scaling the generated instruction page(s) to a certain size satisfy your requirement for web publishing ? For example, if all your pages are of uniform size then a desired width/height setting could be specified or if your instructions are of different page sizes, then a percentage of page size would be more appropriate.

Of course, this capability would not apply to the PDF export, only png, jpg and possibly bmp exports.
Hi Trevor,
The idea would be to be able to change the dpi setting, and get exactly the same layout but with different quality levels. For bitmap images, this would result in larger (more pixels) images as dpi is increased. For PDF, the size of page (in mm) would stay the same, but would allow to zoom in more and more as DPI is increased.
Hope I have been clear Wink


RE: LPub3D: Output resolution change? - Trevor Sandy - 2019-07-03

(2019-07-03, 12:53)Philippe Hurbain Wrote: Hi Trevor,
The idea would be to be able to change the dpi setting, and get exactly the same layout but with different quality levels. For bitmap images, this would result in larger (more pixels) images as dpi is increased. For PDF, the size of page (in mm) would stay the same, but would allow to zoom in more and more as DPI is increased.
Hope I have been clear Wink

Understood. This change is somewhat trivial with only a conversion from inches to metres required for the image generation (jpg, png, bmp). For PDF, there is a method to consume directly the specified dpi.


Cheers,


RE: LPub3D: Output resolution change? - Philippe Hurbain - 2019-07-03

To make it clear: I have prepared 3 files, the first at 150dpi, the second 300dpi (without changing anything else), the third at 300dpi, with font setup changed so that layout matches the page layout at 150dpi. Actually "all" I had to do was to double the font size for each elements.

BTW, this made me find a little bug: when you try to change the font used by default on some element, the initial font size is properly reflected in dialog box, but not the font style (normal/bold/italic).


RE: LPub3D: Output resolution change? - Trevor Sandy - 2019-07-03

(2019-07-03, 14:26)Philippe Hurbain Wrote: To make it clear: I have prepared 3 files, the first at 150dpi, the second 300dpi (without changing anything else), the third at 300dpi, with font setup changed so that layout matches the page layout at 150dpi. Actually "all" I had to do was to double the font size for each elements.

BTW, this made me find a little bug: when you try to change the font used by default on some element, the initial font size is properly reflected in dialog box, but not the font style (normal/bold/italic).

Excellent. Do you mind sharing the model file used to generate these controls ?


Quote:BTW, this made me find a little bug: when you try to change the font used by default on some element, the initial font size is properly reflected in dialog box, but not the font style (normal/bold/italic).


Thanks for reporting this behaviour. I'll take a look.

Cheers,


RE: LPub3D: Output resolution change? - Philippe Hurbain - 2019-07-03

(2019-07-03, 16:18)Trevor Sandy Wrote: Excellent. Do you mind sharing the model file used to generate these controls ?
Here they are (I didn't save the files so I recreated - and simplified - them)