+ Reply to Thread
Results 1 to 2 of 2

Snagit cropping / trimming

Hybrid View

  1. #1
    Registered User
    Join Date
    11-06-2015
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    2

    Snagit cropping / trimming

    Hey guys,

    I am trying to have an VBA script open a certain JPG file, crop it and then safe it.

    So far I got this:

    Sub CreateScreenShots()
    Dim fileLocation As Variant
    Dim fileDirectory As Variant
    Dim fileName As Variant
    
    Set S = CreateObject("SNAGIT.ImageCapture")
    
    fileDirectory = "C:\"
    fileName = "test"
    
    S.Input = siiGraphicFile
    S.ImageTrim.Bottom = 100
    
    'Set up the output so that we get .jpgs with the name of the form
    S.Output = SNAGITLib.snagImageOutput.sioFile
    S.OutputImageFile.FileNamingMethod = sofnmFixed
    S.OutputImageFile.FileType = siftJPEG
    S.OutputImageFile.Directory = fileDirectory
    S.OutputImageFile.fileName = fileName
    S.OutputImageFile.Quality = 100
    S.OutputImageFile.ProgressiveOption = 0
    
    'This pulls the trigger on SnagIt after the options are set up
    S.Capture
    
    
    
    Set S = Nothing
    
    End Sub
    All goes well unless the S.ImageTrim.Bottom command. I don't understand how to implement it correctly.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    11-06-2015
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    2

    Re: Snagit cropping / trimming

    To be more specific. It does not need to be done by using snagit. What I am aiming for is the following: I would like to resize and crop and save under another name a large amount of JPG files in a loop function. Any suggestion is welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. cropping text
    By kuder in forum Excel General
    Replies: 3
    Last Post: 10-12-2011, 04:12 PM
  2. cropping an object with VBA
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2010, 12:13 PM
  3. Text cropping help required.
    By greg7468 in forum Excel General
    Replies: 2
    Last Post: 03-01-2010, 11:59 AM
  4. cropping an Excel shape
    By wdarmes in forum Excel General
    Replies: 1
    Last Post: 12-18-2009, 01:24 PM
  5. Playing Video using SnagIt software in Excel
    By jerryjaysr in forum Excel General
    Replies: 4
    Last Post: 01-28-2008, 12:45 PM
  6. [SOLVED] Cell cropping with a Macro or VB
    By Alastair79 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2006, 08:45 AM
  7. Intelligent picture cropping
    By onceuponatime in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2006, 03:45 PM
  8. [SOLVED] Cropping a worksheet
    By gord in forum Excel General
    Replies: 3
    Last Post: 08-23-2005, 05:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1