Skip to content

studio-1b/WordpressImageReplaceNet

Repository files navigation

WordpressImageReplaceNet

.NET 4.0 Windows Client App, to load all pictures in Wordpress site, and replace them with smaller, watermarked version

All the other features I intended to build, I never finished. The Image replace took that long, to complete.

Warning:

This program is extremely buggy. I really suggest you run it in Visual Studio 2010, and then have breakpoints set whereever an exception is thrown, and see if you can skip that step (break before exception, drag execution to return statement in routine).

Please try this on a test site first! So you are comfortable w the quirks.

It is also very slow on a 4300U intel processor. On this processor, the 3G of free space on Wordpress.com is probably the most it can handle, and it will be very slow. The only plus this program has, is to remove all the repetitive steps of replacing a image in Wordpress.

To start: A.

  1. Search for "WordpressURL" ie. "https://WordpressURL/xmlrpc.php" Replace it with the URL of your wordpress ie. "https://yoursite.wordpress.com/xmlrpc.php"
  2. Search for "WordpressUser"
  3. Search for "Password"
  4. Search for "copy2017.watermark.tictawf.com.png" add your own copyright image into images folder replace all text with original name B. Clean solution (removes all built files) C. Compile solution (Ctrl-shift-B) D. Run in IDE (WordpressExplorer should be the default application)
  5. A form should open
  6. It will try to connect to your wordpress URL
  7. Wait for an unhandled exception, to break-pause the IDE
  8. If no errors, see below.
  9. see below

Image Replace works as such:

  1. Wait until the username has list of sites, then expand
  2. Wait until "signal" icon is no longer shown next to the site you want to update
  3. click on the site it will show thumbnails of all the images in it's media library. hover over it, and it will show options for resizing click on "watermark and 1024".
    This will add the copywrite and resize to fit in 1024x768 (the other sizes I have not tested, but the code is straight to change) repeat hover, select size with all images Then click on first image, hold shift (if discontinuous), click on last image The images checked to resize should be highlited Right-click highlighted image wait for context menu click "apply and upload" wait until it resizes and uploads to wp it does show process 1/20, etc it isn't very fast. I haven't looked into it or forgot it should upload the new resized image delete the old image change URL references in PUBLISHED POSTS (not pages) however, this feature is very buggy. it works 100% of time for img src gallery shortcode works 50% of time gallery block works 10% of time I think the indexing of URL in POSTS is buggy check that all the images have uploaded correctly check that the posts that have those images, that the links aren't broken

This is for people who have experience programming, who don't want to start from scratch, to write a program that will automatically replace images for them in wordpress.

About

.NET 4.0 Windows Client App, to load all pictures in Wordpress site, and replace them with smaller, watermarked version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages