+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
Windows Thread, Batch image convert... in Technical; Does anyone know of any Freeware that will let me drag into it a selection of photoshop files and convert ...
  1. #1

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Batch image convert...

    Does anyone know of any Freeware that will let me drag into it a selection of photoshop files and convert them to JPEG AND save them back to the original folder?

    I've tried Paint Shop Pro, IrfanView and Photoshop but none of these will convert the files to JPEG and save them in the folder the original PSD file was found in.

    There's about 2 thousand files that I need to convert and there's no way i'm doing it by hand!

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: Batch image convert...

    I have a script that will go through a directory structure a use a command line program to do it if you want?

  3. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Batch image convert...

    http://www.imagemagick.org/script/index.php

    scripted, no drag and drop

  4. #4

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,403
    Thank Post
    637
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    Re: Batch image convert...

    Does the IrfanView option "Use this directory for output" not work, or are all your PSD files in different folders?

    You could use the ImageMagick command line version which I think should do the job.

  5. #5
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: Batch image convert...

    My script uses image magick .

  6. #6

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Batch image convert...

    Quote Originally Posted by webman
    Does the IrfanView option "Use this directory for output" not work, or are all your PSD files in different folders?
    All the files are in different folders. Basically I want to convert all the 50MB+ PSD files in the users folders to smaller JPGs

  7. #7

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,403
    Thank Post
    637
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    Re: Batch image convert...

    You'd be better off using ChrisH's suggestion then

  8. #8

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Batch image convert...

    Quote Originally Posted by ChrisH
    My script uses image magick .
    Sounds good, wanna throw it my way?

  9. #9
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: Batch image convert...

    Beware this script will act on all files found of that type in its path. You will need to install image magick as well. This scipt can be adapted easily for other uses as well and no laughing at all the quotes! I know there are other ways to escape the quotes but thats just what I came up with at the time .

    I used this to covert all the crappy bitmap images to jpegs in our user home directories.

    Code:
    'WMI Script to find certain file types and run a command on them
    'Chris Hindmarch FisherMore R.C High
    'I take no responsibility if this script messes anything up ;)
    ' Use with extreme caution as it will act on **ALL** the files of the
    ' defined file type in the path
    
    strComputer = "."
    Path = "E:\Home\FMStudent" 'Path to the root of the directory to search recursively
    OutPath = ""
    OutputFormat = "jpg"
    Drive =""
    FilePath= ""
    FileSize = 0
    StrCmdLine = ""
    Ext = "bmp" ' Set the filetype you are looking for ommit the "."
    
    Set ObjShell = CreateObject("WScript.Shell")
    
    ' Replace back slashes with double back slashes else an error will occur
    Path = Replace(Path,"\","\\")
    FilePath = LCase(Path)'Convert to lower case as wmi ouputs in lower case
    
    'Get drive letter
    Drive = Left(FilePath,2)
    WScript.echo "Drive= " & Drive
    
    'Get the rest of the path
    FilePath=Right(FilePath,(Len(FilePath) -2))
    
    'Create the like query string 
    FilePath = "%" & FilePath & "%"
    
    Set objWMIService = GetObject("winmgmts:" _
        & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
        
    Set colFiles = objWMIService.ExecQuery _
        ("Select Drive,Path,Extension,FileSize,FileName from CIM_DataFile where Extension = '" & ext &_ 
        "' and Drive = '" & Drive & "' and Path Like '" & FilePath & "'")
        
    WScript.echo "The Parent File Path = " & FilePath 
    'Wscript.echo "The amount of files found was " & colfiles.count
    
    If ColFiles.Count >= 1 Then
    	For Each objFile In colFiles
       'Get the full file path
    	CombinedPath = objFile.drive & objFile.Path & objFile.FileName & "." & objFile.Extension
    	WScript.Echo "THe Combined Path = " & CombinedPath
    	'Alter File path to reflect new file type
    	OutPath = Replace(CombinedPath,Ext,OutputFormat)
    	
    	'WScript.echo objFile.drive & objFile.Path & objFile.FileName & "." & objFile.Extension
    	FileSize = FileSize + objFile.FileSize
    	
    	StrCMDLine = "c:\imagemagick\convert.exe " & """" & CombinedPath & """" & " " & """" & OutPath & """"
       WScript.Echo StrCMDLine
       ObjShell.Run StrCmdLine,1,True
    	
    	'End IF
    	
    	
    	Next
    	Else
    	
    	WScript.echo "No Files Found or incorrect path specified"
    
    End If 'IF ColFiles.Count >= 1 Then
    FileSize = FileSize/1024
    WScript.echo "Disk Space in KiloBytes= " & FileSize & VbCrLf
     
    FileSize = FileSize/1024
    WScript.echo "Disk Space in Meg= " & FileSize & VbCrLf
    
    FileSize = FileSize/1024
    WScript.echo "Disk Space in Gigs= " & FileSize & VbCrLf

  10. #10

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Batch image convert...

    Perfect, changed what I needed and it's doing it's thing now, cheers!

  11. #11


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,462
    Thank Post
    866
    Thanked 845 Times in 667 Posts
    Rep Power
    195

    Re: Batch image convert...

    Imagemagik suite is the muttses nuttses - you can do a hell of a lot with it - writing text on images, cropping, etc. etc.

    I also recommend "jhead" (I know it sounds like it should be filtered.. it ain't! ) http://www.sentex.net/~mwandel/jhead/
    this has an "autorot" option that will rotate digicam pics if your camera writes the correct exif. Can also be used to sort by time - especially useful for merging 2 photosets from 2 cameras of the same occasion.

  12. #12

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Batch image convert...

    I tell a lie, when I went back to the server this message came up:

    Script: c:\BMP2JPG.vbs
    Line: 43
    Char: 1
    Error: The remote procedure call failed
    Code: 800706BE
    Source: SWbemObjectSet
    And line 43 is: If ColFiles.Count >= 1 Then

  13. #13
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: Batch image convert...

    Must be my error trapping (or lack of) it musnt be finding what you have put it as extensions.

    Uncomment the line above and see if it is finding the files.

  14. #14

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Batch image convert...

    Uncommented the line above and I still get the same error...

  15. #15
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: Batch image convert...

    Its some kind of RPC error what kid of paths are you putting in? Also try it on a different machine with a test folder.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Convert IMS to SCORM
    By geekman in forum Virtual Learning Platforms
    Replies: 3
    Last Post: 21st September 2007, 06:39 AM
  2. convert to mp3
    By Uraken in forum General Chat
    Replies: 16
    Last Post: 23rd March 2007, 08:47 AM
  3. Convert MP3 to AAC in iTunes
    By richard in forum General Chat
    Replies: 12
    Last Post: 22nd January 2007, 11:21 AM
  4. Convert DVD to AVI or MPEG or something
    By adamyoung in forum How do you do....it?
    Replies: 6
    Last Post: 29th March 2006, 10:30 PM
  5. Convert .mrw to .jpg
    By richard in forum Windows
    Replies: 6
    Last Post: 28th February 2006, 01:21 PM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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