Code Monkey home page Code Monkey logo

Comments (9)

jsnee avatar jsnee commented on August 18, 2024

It's quite possible, I don't suppose you'd be willing to share an example file?

from vscode-dmbinder.

rjbprime avatar rjbprime commented on August 18, 2024

I've tried with these three files.

Nomad-Ranger(Psi)-v1.md.txt
Artificer-Dragoon-1.md.txt
Artificer-Dragoon-2.md.txt

from vscode-dmbinder.

jsnee avatar jsnee commented on August 18, 2024

I did see one of the files rendered without the background texture at first, but then it seemed to fix itself the next time I exported the file. My best guess is that it may be puppeteer related. Are you using a version of Chromium installed by Puppeteer (through this extension) or did you choose to use a local Chrome executable?

from vscode-dmbinder.

rjbprime avatar rjbprime commented on August 18, 2024

Puppeteer installed version. Is it a case of re-render until it works?

from vscode-dmbinder.

jsnee avatar jsnee commented on August 18, 2024

That very well may get you a properly exported version, but I don't find that an acceptable solution, so I'm going to continue to try and troubleshoot if you don't mind helping me out. If you go into your settings what is the value of this setting:
image

from vscode-dmbinder.

jsnee avatar jsnee commented on August 18, 2024

Ah, I may have figured out the issue. I'm going to run some testing first, but unless I see any issues, I'm going to update the extension and have you try it out.

from vscode-dmbinder.

jsnee avatar jsnee commented on August 18, 2024

Done! Once you update your extension to version 0.5.9, you shouldn't encounter those issues anymore. If you do, please let me know!

from vscode-dmbinder.

rjbprime avatar rjbprime commented on August 18, 2024

For some reason the current version of the plugin is now increasing the file size of my exported PDFs. I kept a copy of the previous markdown file, which has similar content but 5 less pages, and exporting it has created a roughly 8mb file, whereas the new file is exported as a roughly 19mb file. They both use similar content, besides the original having 5 less pages, the only other change is I made the map in the guide take up 4 pages instead of part of one, and a mostly blank page as a spacer.

I have managed to reduce the file size by half for the new doc, but compressing all the images in use. Doing this, the doc exported as a 10mb file, still more than the older doc, even with the compressed images.

Is there a way to determine the version of Chromium used for export? When I use Homebrewery or GMBinder, I write the doc in the current Chrome version, then share it so that I can open the share link in Chromium v64.0.3282.186-r520840-win64, as it exports at a fraction of the file size of current or recent versions of Chrome. Only thing I'm unsure on is what CSS or other things are not available.

Could this version be looked into as the version in use? I'd much prefer to be able to share my work via discord to my players, as a small PDF then have to give them a link to a large one, as half my players are on 3g pocket wifi with limited plans.

from vscode-dmbinder.

jsnee avatar jsnee commented on August 18, 2024

The version should be listed in your VSCode settings in the DMBinder section. It is possible to run this command and browse to and select your installed version of Chrome instead (or a separately downloaded version of Chromium.

image

My guess is that the images you have included are significantly large and that is what is impacting your PDF size. If you feel that there was a change in the plugin that caused this, you could try exporting it with an older version to see if that makes any difference. If it does, then that would be something that I could look into. Here's how you can change the version of the plugin you're running:
image

I'd suggest trying to point the plugin to that version of Chromium that you use, first, as that seems the best candidate for fixing your solution.

from vscode-dmbinder.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.