Plugin for streamlining image post creation?

I have a photo gallery website, with one post for each image. Currently, the process for creating these posts is cumbersome: I click "add new post," add the title and description, then click "set featured image," find the photo, and add the same title and description (with different formatting). Is there a wordpress plugin that would streamline this process? That is, something like the flickr uploadr or a plugin that would allow me to iterate through the images in the media library and create a post for each?

I want to show the category image (set with ACF) inside a loop that shows it inside the cards, how can I do it?

<?php get_header();   $  category = get_category( get_query_var( 'cat' ) ); $  cat_id = $  category->cat_ID;  $  id_cat = array('parent' => $  cat_id); $  categories = get_categories( $  id_cat ); 

// Get particular category’s object info. $ queried_object = get_queried_object();

// (Optional depending on desired outcome) If you wanted to get the type of taxonomy. $ taxonomy = $ queried_object->taxonomy;

// (Optional depending on desired outcome) If you wanted to get the associated ID. $ term_id = $ queried_object->term_id;

// Get image ID for this field. $ attachment_id = get_field( ‘category_image’, $ queried_object );

// URL of image at specific size. $ image = $ attachment_id[‘sizes’][‘chosen-image-size’];

?> 
<section class="p-5">     <div class="container">         <div class="row text-center">             <h3><?php single_cat_title(); ?></h3>             <p><?php category_description(); ?></p>         </div>     </div> </section>  <section>     <div class="container animated">         <div class="row d-flex" data-masonry='{"percentPosition": true }'> 

‘.’ term_id ).'”>’ .$ category->name.”.’ ‘; } ?>


In evidenza

            <?php while(have_posts()): the_post(); ?>                 <div class="col-6 col-md-4 col-xl-3 mb-4">                     <div class="card text-center">                         <a href="<?php the_permalink() ?>">                                         <!-- Immagine Articolo -->                             <?php if(has_post_thumbnail()): ?>                                   <div class="m-1"><?php the_post_thumbnail('thumbnail') ?></div>                             <?php endif; ?>                         </a>                             <div>                             <h3><?php the_title(); ?></h3>                             <p><?php the_excerpt(); ?></p>                         </div>                         <a href="<?php the_permalink() ?>" class="btn btn-outline-dark btn-sm">Continua a                             Leggere</a>                     </div>                 </div>                     <?php endwhile; ?>                     <?php else: ?>                         <?php echo wpautop('ops.. non ho trovato nulla');?>                     <?php endif; ?>         </div>     </div> </section> 

403 Forbidden when Updating (I presume POST?) but not Creating (PUT?) an image

I’m using the WordPressPCL library for .NET alongside WooCommerce (although my problem is with the WordPress API, not the WooCommerce API), and trying to upload an image alongside my product

My current process is

  1. Upload the image using WordPressPCL, using the Media.Create() method which I presume PUTs the image
  2. Create the product using WooCommerceNET, with the image’s URL as the product URL
  3. Update the image, setting the Media’s "Post" ID to the WooCommerce product ID

Steps 1 and 2 work fine and I can upload dozens of products, but on 3 I get a 403 Forbidden response which doesn’t make sense to me since I was able to upload the image.

The above order is important to me, because I absolutely do not want to create a product without the image already being on the server – therefore I need to guarantee the process fails if there’s a problem with either the image upload or the product upload. Hence I update the image to attach to the post afterwards.

I know that you don’t strictly need to attach the image to a post, but it’s a requirement from the customer, who uses the attachment to manage deletion of images.

Simplified code below (I’ve removed the details of error handling, object creation etc)

// Create the image try {     uploadedImage = await wordPressClient.Media.Create(imagePath, fileName);     } catch {     // Image upload failed. Fail the process }              // Image uploaded successfully, now create the product try {     productImage = new ProductImage()     {         src = uploadedImage.SourceUrl;     };          product.images.Add(productImage);                      // Replace with the product recieved from the server so that      product = await wooCommerceClient.Product.Add(product);  } catch(Exception e) {     // Product creation failed, fail the process (and try to remove the image, but don't worry about it) }  // Now try to link the image to the post try {     uploadedImage.Post = (int)product.id;     await wordPressClient.Media.Update(uploadedImage); } catch {     // Problem here } 

Is there some kind of API permission I need to set to allow my API user to update the data for an existing media item? Or something else I’m missing?

How to set featured image from external url img

I’m generating a thumb of a video and its going to the public_html folder with this

  $  thumbfile = .$  key.".png";   $  videothumb = "/var/www/bamboostock/wp-content/uploads/2021/04/".$  file_name;   $  command = "/usr/bin/ffmpeg -i " . $  videothumb . " -f mjpeg -t 1 -r 1 -y ".$  thumbfile;   system($  command); 

Now I need this image to set as Featured, but nothing is working

WooCommerce – Display Product image and name on Orders page

I used the solution here (linked below). It works great. However, it glitches when displaying an order containing a product that has since been deleted. Is there a way to modify the code so that on products that have been deleted it just shows nothing instead of a huge paragraph of gibberish? Just curious!

Original solution was by @meloman : Display order items names in WooCommerce admin orders list

Change the URL of an image from wp_get_attachment_image_src except in the frontpage

This is the code I used that is working, but I want it to work only on product posts and not on the frontpage.

function alterImageSRC($  image, $  attachment_id, $  size, $  icon){         $  image[0] = 'http://newimagesrc.com/myimage.jpg';  return $  image; } add_filter('wp_get_attachment_image_src', 'alterImageSRC', 10, 4); 

What tools would you use to change the perspective in a 2D image?

Let’s say you are looking at a photograph of a real scene. You see a sign which you know is circular, but it appears as an ~ oval in the image. What transforms would you use to reconstruct this object? Please note that your perspective point of view could be displaced both left-right and up-down. I question whether this is a simple transform with an mma function or whether a dynamic point-of-view and recursion are required. Keywords and naming functions would help.

Is there a way where we can verify if certain image is 3D or not [closed]

I wanted to understand – Is there a way where we can verify if certain image is 3D or not

So basically I want to automate the process where we can detect if certain given image is of 3D or not

Problem: In my application – I often detect few 3D images are showing as plain black image or sometimes 3D images are broken

So if I can find a way where I can check that certain image should not be completely black and should be 3D model and not 2D image

My Application is in C# – but I am open for any solution irrespective of language!!

Thanks in advance

How to align a network graph to an image?

An arbitrary example:

Create a random image

Image[RandomReal[{0, 1}, {10, 10}], ImageSize -> Medium] 

enter image description here

Define some points and a graph to align

c = PixelValuePositions[%, White, .1] RandomGraph[Table[Length[c], 2]] 

enter image description here

Out[1]: {{2, 9}, {1, 8}, {1, 7}, {2, 7}, {9, 6}, {2, 2}} 

How can I align the nodes of a graph to coordinates on an image?

Ideally this would be a graph from a correlation matrix

RandomReal[{-1, 1}, Table[Length[c], 2]] // MatrixForm