sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Ruby created images not ok?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 243 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      Pout
      last edited by

      i have created a set of images with the code
      view.write_image(imagename,width,height,true)

      Those images i want to convert towards a movie based on command line driven ffmpeg
      When i use standard commands the movies are created but only on some machines and some media players they are playable
      When i use extended commands eg. specifying the codec no movie is created

      App. the images generated by Sketchup (both jpg and bmp) have damaged headers so the movies are not generated.

      Anyone knows if the created images by Sketchup^are completely ok, or are there also problems in other applications/scripts

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        @pout said:

        i have created a set of images with the code
        view.write_image(imagename,width,height,true)

        Those images i want to convert towards a movie based on command line driven ffmpeg
        When i use standard commands the movies are created but only on some machines and some media players they are playable
        When i use extended commands eg. specifying the codec no movie is created

        App. the images generated by Sketchup (both jpg and bmp) have damaged headers so the movies are not generated.

        Anyone knows if the created images by Sketchup are completely ok, or are there also problems in other applications/scripts

        If you are exporting a series of scenes as images why not do it with the Animation exporter but specify PNG files rather than a movie ? They they are made in one go without needing coding ?
        Sketchup's images are OK BUT you need to set all of the options available for a particular image file type. For example jpeg can have more that you shewed.
        Here's an example of passing a hash of options as 'keys' to the image exporter... http://code.google.com/apis/sketchup/docs/ourdoc/view.html#write_image

        TIG

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pout
          last edited by

          Hey Tig,

          Thx for the answer.
          Why i am not using teh animation exporter is because it skips page observers.
          Since changing from one page to another invokes a function in my model i cannot use it.

          That's why i'm looking for an alternative to create movies.
          You think it's possible that adding the compression an transparent factor solves the issue?
          Cause i have also tried it with images generated by Export-->2D graphic and that had the same error.

          Thx!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement