• Resolved nsitu

    (@nsitu)


    Much like @aiye89, I had an issue with PDF resolution. @mennolui you provided a helpful answer here:
    https://ww.wp.xz.cn/support/topic/pdf-slide-bad-resolution/

    I solved a similar problem by modifying the resolution in the following script:
    foyer/includes/class-foyer-image-editor-imagick.php

    Around line #72 we fine the following line:
    $this->image->setResolution( 72, 72 );

    I changed this line to read as follows:
    $this->image->setResolution( 300, 300 );

    As a result the PDF slides are generated at a higher resolution.

    However, I would like to be able to change this without having to modify the plugin itself. @mennolui can you please make this resolution setting adjustable? For example via a WordPress hook? That way we could set the resolution in the theme’s functions.php rather than modifying the plugin. Alternately if you could add some User Interface to achieve this it would also do the trick.

    Thanks for a great plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author Menno Luitjes

    (@mennolui)

    Hi @nsitu, good to hear that worked.

    Ideally I would like to detect the page size of the PDF, then dynamically set the resolution based on the page size so the output is always 1920×1080 (or fills that box). Preferably using WordPress built in PDF handling. But I have not found an easy way to do this.

    Second best IMO would be adding a user setting per PDF slide. This is on my list, but might take a while to implement.

    Best,
    Menno

Viewing 1 replies (of 1 total)

The topic ‘PDF Resolution’ is closed to new replies.