Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write a script for bundle editing yellow photos
#1
Hi all,

I have bundles for old yellowish photos to restore.

I run GUI commands/steps to do the job.  Can I write a script to do the job if I found the GUI commands/steps suitable after testing?

I have no idea of the back-end commands.  Please advise.  Thanks.

Regards
Reply
#2
(01-09-2024, 09:35 AM)Stephen Liu Wrote: Hi all,

I have bundles for old yellowish photos to restore.

I run GUI commands/steps to do the job.  Can I write a script to do the job if I found the GUI commands/steps suitable after testing?

I have no idea of the back-end commands.  Please advise.  Thanks.

Regards

There is no direct relationship between UI things and the API (the commands used by the code). Sometimes the UI replaced several API calls, but some API call can do the job of hundreds of manual commands.

Also, you have to know how to write code.

What steps did you follow, exactly?
Reply
#3
(01-09-2024, 06:30 PM)Ofnuts Wrote:
(01-09-2024, 09:35 AM)Stephen Liu Wrote: Hi all,

I have bundles for old yellowish photos to restore.

I run GUI commands/steps to do the job.  Can I write a script to do the job if I found the GUI commands/steps suitable after testing?

I have no idea of the back-end commands.  Please advise.  Thanks.

Regards

There is no direct relationship between UI things and the API (the commands used by the code). Sometimes the UI replaced several API calls, but some API call can do the job of hundreds of manual commands.

Also, you have to know how to write code.

What steps did you follow, exactly?

Hi@Ofnuts

Thanks for your advice.

Currently I'm subsribing "thephotoforum.com"

I posted my problem on yellowish photos, informing that I succeed restoring them on GIMP.  A folk there advised me writing a script for group restoration.  He posted following link to me

1)
[tutorial] gimp script to batch resize, add border, watermark or signature
https://www.sitepoint.com/community/t/tutorial-gimp-script-to-batch-resize-add-border-watermark-or-signature/118076

2)
Chapter 13. Scripting
https://docs.gimp.org/2.8/en/gimp-scripting.html

That is the complete story.  I learned scripting before but seldomly use it.

Regards
Reply


Forum Jump: