3D images of cells

You can access a lot of 3D models of ananatomical parts of the brain, for example:

Brain, Neurons, Cognition: Computational Neuroscience

Is there any way to get the same for a 3D structure of cells, such as glial cells?

I Will Design 15 Professional Featured Blog Post Images for $15

I Will Design 15 Professional Featured Blog Post Images

⌛️⏰ In Less Than 48 Hours the Price Will Increase by $40 – So Grab This Offer

The Blog Post Image Makes the Article Great. But a Professional Featured Blog Post Image Enhances the Elegance of the Article.

A Professional Featured Image Makes Your Blog Post Perfect. Professional Featured Image Takes the Article to the Next Level and Grabs the Audience’s Attention Quickly.

Most of the Peoples Download Low-Quality Images From Google and Do Some Minor Changes on It and Expecting That Visitors Will Read the Article Till the End.

Be Smart and Hire a Professional Graphic Designer.

So, If You Are Interested in My Service Then I’m Here to Design 15 Professional Featured Blog Post Images for You. Just Contact Me by Inbox or Order Directly and Wait for Your Super Delivery.

What I Need:

  1. Title Text (Best “x” Set made In USA)
  2. Dimensions (Optional)
  3. Related Image (If you have)
  4. URL (If Published)

Why You Should Hire Me?

  • Professional Service
  • High-Quality Images
  • Unlimited Revisions
  • One Day Delivery
  • Eye Catchy designs
  • Affordable
  • Hire me and see the difference in quality

If You Have Any Query in Mind Than Just Send Me a Message and I Will Be Very Happy To Respond to You as Soon as Possible.

.(tagsToTranslate)featured(t)image(t)Design(t)Blog(t)Post(t)Social

magento2.3 – M2 | ci6.googleusercontent.com gmail proxy server stopping images to load in email templates

I am having gmail proxy server issue for showing images in email templates.

At the start of image URL which is
http://localhost/pub/media/email/images/logo.png

this is getting appended
https://ci6.googleusercontent.com/proxy/tuG-pi…

Like: https://ci6.googleusercontent.com/proxy/tuG-pitMvoq3PwS0FSL5T-pV7Wh_9PffwfBhgEW_NuEAfWNG5rld6qaGEGRa0-pg50C9akGBwpPr3gx7U3IpT-jh_rnZUtn2MjK-7MuTJqXvFM0UHJWVe-Vz-86HvTVgkDcERAjIYt1ZWxOv7BYUawrPc42zYxEJkVNF=s0-d-e1-ft#http://localhost/pub/static/version1614839350/frontend/CustomTheme/default/en_US/images/email/logo.png

I found this remedy https://stackoverflow.com/a/51643787/10193644 but not sure how can I send HTTP header code 200 for sales emails (for example “new_order” email templete)

I have overridded the default order email temple from theme as:

app/design/frontend/(Vendor_Name)/(Theme_Name)/Magento_Sales/email/order_new.html

Looking for your valuable ideas as solution, Thanks

How do I prevent WordPress from adding a "-1" suffix to some uploaded images?

Some images that I upload to the Media Library end up with a "-1" suffix added to the file name. For example camping.jpg is renamed by WP to camping-1.jpg

  • I am using WordPress 5.6.2
  • The affected images are not already present in the Library
  • This seems to affect images around 1500px wide; smaller images are not affected
  • No resizing occurs at any time
  • No image-affecting plugins installed (shortcodes-ultimate, classic-editor)
  • Using a child theme based on the Underboot theme

Any help would be greatly appreciated. Thanks!

ffmpeg – Create a Video from Images with Blank Audio

I want to create a video from some images to use in the DashWare program.
One of the requirements is that the video must have an audio track.

If I create a sequence of JPG and join them with an audio, the result is the desired one.

ffmpeg -y -framerate 29.97 -i Pictures_% 5d.jpg -i audio.mp3 -vf scale = "2560: 1440" output.mp4

I would like to do better and I would like that when the video is created directly a blank audio track is created.
I have managed to do it with this sequence but I have the problem that an endless video is generated. If you put a -t clause then the video lasts as long as you indicate, but I don’t want to do so since it is to make different videos and they will have a different duration.

ffmpeg -y -f lavfi -i anullsrc -framerate 29.97 -i Pictures_% 5d.jpg -vf scale = "2560: 1440" Output.mp4

posts – Alt text attributes not showing over portfolio images

I´ve been searching almost all posts regarding this issue but haven´t found a solution for my theme. Maybe there´s a kind expert mind that can support me. I´m using a theme that doesn´t allow updates nor support. It´s a grid-based minimal design. As I´m a motion designer would like that when the viewer hover´s the cursor over the images on the page the information text displays as it used to, now it doesn´t happen anymore and I´m a bit frustrated as need showing my work to potential clients.

This is my website https://rafaelcalleja.com/ not sure if I should share anything else to get some advice?

thank you in advance for any help

functions – Store wordpress images by size folders, can’t get the slug by size

I used the post explained here, I can not comment there as I don’t have enough reputation, so I created a new topic.

When using this code, i am well generating the thumbnails in subdirectories by images sizes. But when it’s the time to call the image in the theme, all the different size are calling the same URL from original image uploaded without adding the subdirectory. I am using a different directory than wordpress default for media uploads. Result is like this :

<img width="1500" height="977" src="https://website.com/media/image.jpg" alt="Alt text" 
     srcset="https://website.com/media/image.jpg 550w, 
             https://website.com/media/image.jpg 800w, 
             https://website.com/media/image.jpg 768w, 
             https://website.com/media/image.jpg 300w, 
             https://website.com/media/image.jpg 1200w, 
             https://website.com/media/image.jpg 1500w" 
     sizes="(max-width: 1500px) 100vw, 1500px">

Any idea how i can solve this? Thank you for your help. Here is the code:

// Include the existing classes first in order to extend them.
require_once ABSPATH . WPINC . "/class-wp-image-editor.php";
require_once ABSPATH . WPINC . "/class-wp-image-editor-gd.php";
// Now we extend the original image editor class
class my_WP_Image_Editor extends WP_Image_Editor_GD {
    public function generate_filename($suffix = null, $dest_path = null, $extension = null) {
        // $suffix will be appended to the destination filename, just before the extension
        if (!$suffix) {
            $suffix = $this->get_suffix();
        }
        $dir = pathinfo($this->file, PATHINFO_DIRNAME);
        $ext = pathinfo($this->file, PATHINFO_EXTENSION);
        $name = wp_basename($this->file, ".$ext");
        $new_ext = strtolower($extension ? $extension : $ext );
        if (!is_null($dest_path) && $_dest_path = realpath($dest_path)) {
            $dir = $_dest_path;
        }
        //we get the dimensions using explode, we could have used the properties of $this->file(height) but the suffix could have been provided
        $size_from_suffix = explode("x", $suffix);
        //we get the slug_name for this dimension
        $slug_name = $this->get_slug_by_size($size_from_suffix(0), $size_from_suffix(1));
        return trailingslashit( $dir ) . "{$slug_name}/{$name}.{$new_ext}";
    }
    function multi_resize($sizes) {
        $metadata = array();
        $orig_size = $this->size;
        foreach ( $sizes as $size => $size_data ) {
            if ( ! isset( $size_data('width') ) && ! isset( $size_data('height') ) ) {
                continue;
            }
            if ( ! isset( $size_data('width') ) ) {
                $size_data('width') = null;
            }
            if ( ! isset( $size_data('height') ) ) {
                $size_data('height') = null;
            }
            if ( ! isset( $size_data('crop') ) ) {
                $size_data('crop') = false;
            }
            $image = $this->_resize( $size_data('width'), $size_data('height'), $size_data('crop') );
            if ( ! is_wp_error( $image ) ) {
                $resized = $this->_save( $image );
                imagedestroy( $image );
                if ( ! is_wp_error( $resized ) && $resized ) {
                    unset( $resized('path') );
                    $metadata($size) = $resized;
                }
            }
            $this->size = $orig_size;
        }
        //we add the slug to the file path
        foreach ($metadata as $slug => $data) {
            $metadata($slug)('file') = $slug . "/" . $data('file');
        }
        return $metadata;
    }
    // Our custom function to retrieve the proper slug by weight and height
    function get_slug_by_size($width, $height) {
        // Make thumbnails and other intermediate sizes.
        $_wp_additional_image_sizes = wp_get_additional_image_sizes();
        $image_sizes = array(); //all sizes the default ones and the custom ones in one array
        foreach (get_intermediate_image_sizes() as $s) {
            $image_sizes($s) = array('width' => '', 'height' => '', 'crop' => false);
            if (isset($_wp_additional_image_sizes($s)('width'))) {
                // For theme-added sizes
                $image_sizes($s)('width') = intval($_wp_additional_image_sizes($s)('width'));
            } else {
                // For default sizes set in options
                $image_sizes($s)('width') = get_option("{$s}_size_w");
            }
            if (isset($_wp_additional_image_sizes($s)('height'))) {
                // For theme-added sizes
                $image_sizes($s)('height') = intval($_wp_additional_image_sizes($s)('height'));
            } else {
                // For default sizes set in options
                $image_sizes($s)('height') = get_option("{$s}_size_h");
            }
            if (isset($_wp_additional_image_sizes($s)('crop'))) {
                // For theme-added sizes
                $image_sizes($s)('crop') = $_wp_additional_image_sizes($s)('crop');
            } else {
                // For default sizes set in options
                $image_sizes($s)('crop') = get_option("{$s}_crop");
            }
        }
        $slug_name = ""; //the slug's name
        if($width >= $height){
            foreach ($image_sizes as $slug => $data) { // we start checking
                if ($data('width') == $width) {//we use only width because regardless of the height, the width is the one used for resizing in all cases with crop 1 or 0
                    $slug_name = $slug;
                }
                /*
                 * There could be custom added image sizes that have the same width as one of the defaults so we also use height here
                 * if there are several image sizes with the same width all of them will override the previous one leaving the last one, here we get also the last one
                 * since is looping the entire list, the height is used as a max value for non-hard cropped sizes
                 *  */
                  if ($data('width') == $width && $data('height') == $height) {
                      $slug_name = $slug;
                  }
        }
        } else {
            foreach ($image_sizes as $slug => $data) {
                if ($data('height') == $height) {
                    $slug_name = $slug;
                }
                if ($data('height') == $height && $data('width') == $width ) {
                    $slug_name = $slug;
                }
            }
        }
        return $slug_name;
    }
}

plugins – How to disallow contributors to delete their uploaded images?

I allowed contributors to upload images via the following code:

if ( current_user_can('contributor') && !current_user_can('upload_files') )
    add_action('admin_init', 'allow_contributor_uploads');
function allow_contributor_uploads() {
    $contributor = get_role('contributor');
    $contributor->add_cap('upload_files');
}

Now I need to disallow them to delete the images they uploaded. Is there an easy way to do it? I know of User Role Editor plugin but I don’t want to install it just for this one thing.

You will get Amazon, eBay & e-commerce Photo Editing for $6

You will get Amazon, eBay & e-commerce Photo Editing

have so many experiences in all kinds of e-commerce photo editing, resizing, and retouching.

I do follow e-commerce photo editing guidelines. You will get perfect size images for all kinds of the marketplace.

Your images will be fantastic to view on the e-commerce website.

20 images

.

ER-Diagram for Users, Images and Likes

I’m looking to create a database (using Django) where:

  • A user uploads photos.
  • A user upvotes/downvotes photos of other users.

I came up with this ER diagram:
enter image description here

My questions are:

  • Is a vote better as an entity or as an attribute of the photo?
  • If a vote should remain an entity, how do I show in its attributes that the primary key of the vote is the combined foreign keys of the user and the photo?

Any constructive comments/recommendations are also welcome.