Jump to content

v_kyr

Members
  • Content count

    3,900
  • Joined

  • Last visited

About v_kyr

  • Rank
    Dedicated User

Recent Profile Visitors

2,815 profile views
  1. v_kyr

    Batch files renameing

    AFAI recall Perl is preinstalled on OSX systems and can be used right out of the box in a terminal window. So the below example perl script would work on filenames like shown in your screenshot. $ ./batchrename.pl *.jpg You gave 4 command-line file arguments: renaming DT12-1-05.jpg to 05-DT12-1.jpg renaming DT12-4-05.jpg to 05-DT12-4.jpg renaming DT13-1-01.jpg to 01-DT13-1.jpg renaming DT13-1-02.jpg to 02-DT13-1.jpg The "batchrename.pl" Perl script: #!/usr/bin/perl -w #----------------------------# # PROGRAM: batchrename.pl # #----------------------------# $numArgs = $#ARGV + 1; print "You gave $numArgs command-line file arguments:\n\n"; foreach $argnum (0 .. $#ARGV) { print "renaming $ARGV[$argnum] to "; $was = "$ARGV[$argnum]"; $filename = "$ARGV[$argnum]"; $tmp = $filename; $tmp =~ /-(\d\d)\.jpg/; $num = $1; $filename =~ s/-(\d\d)\.jpg/\.jpg/; $newfilename = "$num-$filename"; print "$newfilename\n"; rename ( $was, $newfilename ) unless $was eq $newfilename; } What the above script does is matching and remembering the last number part -##.jpg from a JPG file name like "DT12-1-05.jpg" in a string, then in a second step it substitutes and replaces in a filename string "-##.jpg" with ".jpg" and finally renames a file to a new composite filename, where the number part is placed at front. For example ... DT12-4-05.jpg --> 05-DT12-4.jpg The perl script file ... batchrename.pl In order to use that perl script you best copy it into the folder where the JPG image files reside and then give it executable rights so you can call it and pass the files to it, aka ... $ chmod +x batchrename.pl $ $ ./batchrename.pl *.jpg Good luck!
  2. v_kyr

    Batch files renameing

    Then you didn't read and looked carefully through posts ... Mac desktop
  3. I "placed" that image as an example for you. You have to clip the placed in images into the appropriate layer positions (take a look where I put it in the layers panel), namely clipped in under each "place your image #" layer, so the template's overall regions arrangement and division is kept.
  4. Works for me with that template ...
  5. Very easy way to create Gradient Color lighting effect in Affinity Photo Quick Technique for Portrait Dual Lighting Effect in Affinity Photo ... and so on ...
  6. v_kyr

    Batch files renameing

    What I suggested are instead more using some common language (bash, perl, python ... etc.) scripts than Automator based. Though there are for sure also ways to do it with Automator. All of the above named scripting languages support regular expressions, which are handy for extracting/stripping/appending/including portions of characters in a string (the file name string). - Perl for example has a "rename" command which can deal with regexp, python is also powerful in that regard. - It depends on what you personally feel more comfortable with here, namely using some shell based script processing or some GUI tool instead. There are also Mac desktop related ways to do so, in general there are many ways which lead to Rome.
  7. v_kyr

    Batch files renameing

    Assuming all files are in a folder, I would traverse (iterate over) those ... Read and keep the file name as a string Read the last number part from that file name string keep it in a var and then also remove the end characters ("-1|-2|-3 ...") part from it - Regular Expressions are also helpful for find/replace on a string here Append the extracted last number to the front of the string ("number-") Rename the file via "mv" to the new generated file name string
  8. v_kyr

    Batch files renameing

    On which OS are you working and what scripting capabilities do you have there? - In order to rename 800 files that way I would build a custom renaming script for that task, or use some appropriate already available third party tool for the job.
  9. Well in order to preview raw files (thumbnails or a jpg preview of those) on the desktop you need to have a RAW codec installed which supports your specific camera generated RAW files. So it's always important what camera (vendor and model) you use here in order to download a software codec which supports it's RAW file format. - Some camera vendors like Nikon etc. also offer own RAW file (NEF) codecs for Windows, which when installed offer to preview and show up in Win explorer thumbnails of the RAW image files.
  10. Works for me on El Capitan ... raender.afmacro ... simple macro (Studio > Macro) so no macro library file. In your case resetting APh itself then might help with chance. Sounds like it freezed the macro execution/processing etc.
  11. Retry to export with "Rasterize: Nothing" under the SVG Export more button options ... gradient.svg test.svg
  12. Under which OS? Also just showing up visual margins via "Document > Margins ..." or by altering the documents dimension and thus altering sizes?
  13. ImageMagick ... ... resizes to a given pixel width and keeps/handles the height proportional to the given image aspect ratio. - A pretty simple no brainer, when placed in a shell script or Powershell script etc. with passed over width setting and file arguments expansion, you have a generic reusable script for those things.
  14. See this thread ... https://forum.affinity.serif.com/index.php?/topic/54396-compatibility-with-a-xp-pen-arist/
  15. Nikon also has an own Win NEF codec for such purposes.
×