Answers the alignment for the meta image.

@param string $alignment

@return string
345248
public function getMetaImageAlignment($alignment = null)
    {
        if ($alignment) {
            return $alignment;
        }
        
        if ($alignment = $this->owner->ImageMetaAlignment) {
            return $alignment;
        }
        
        return $this->owner->getFieldFromParent('DefaultImageAlignment');
    }
637543
protected function getConfiguredFormat()
    {
        $format = $this->config->get('concrete.misc.default_thumbnail_format');
        if ($format === static::FORMAT_AUTO || $this->bitmapFormat->isFormatValid($format)) {
            $result = $format;
        } elseif ($format === 'jpg') { // legacy value
            $result = BitmapFormat::FORMAT_JPEG;
        } else {
            $result = static::FORMAT_AUTO;
        }

        return $result;
    }
996305
public function imagePath($image)
    {
        if (!$image) {
            return '';
        }

        $parts = explode(';', $image);
        $fileId = $parts[0];

        // deliver original file
        $src = $this->router->generate('frontendmedia_inline', ['fileId' => $fileId], UrlGeneratorInterface::ABSOLUTE_PATH);

        return $src;
    }
154730
private function checkForMetaTag(): ?Image {
        $image = $this->checkForTwitterTag();

        if ($image) {
            return $image;
        }

        $image = $this->checkForOpenGraphTag();

        if ($image) {
            return $image;
        }

        $image = $this->checkForLinkTag();

        if ($image) {
            return $image;
        }

        return null;
    }
1141427
public function getImageExtensions( $default = null ) {

		$prop = $this->properties[ self::PROP_EXTENSION_IMAGE ];

		if( isset( $prop ) && strlen( $prop ) > 0 ) {

			return preg_split( "/,/", $prop );
		}

		return $default;
	}
713004
public function image($image)
    {
        $filePaths = loader()->getPublicDirs(true);
        $image = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $image);

        foreach ($filePaths as $filePath) {
            $filePath .= 'img' . DIRECTORY_SEPARATOR;

            if (is_file($filePath . $image)) {
                return path_to_url($filePath . $image);
                break;
            }

            unset($filePath);
        }
    }
434918
public function getImageAlignmentOptions()
    {
        return [
            self::ALIGN_LEFT   => _t(__CLASS__ . '.LEFT', 'Left'),
            self::ALIGN_CENTER => _t(__CLASS__ . '.CENTER', 'Center'),
            self::ALIGN_RIGHT  => _t(__CLASS__ . '.RIGHT', 'Right')
        ];
    }
1364794
public static function getTransformPathForPath($path): string
    {
        /** @var ConfigModel $settings */
        $config = ImagerService::getConfig();

        $hashPath = $config->hashPath;
        $pathParts = pathinfo($path);

        if ($hashPath) {
            return FileHelper::normalizePath('/' . md5($pathParts['dirname']));
        }

        return FileHelper::normalizePath($pathParts['dirname']);
    }
624869
protected function indent($offset = 0)
    {

        return $this->isPretty()
            ? str_repeat($this->options['indent_style'], ($this->level + $offset) * $this->options['indent_width'])
            : '';
    }
1135004
public function getImageWidth($image): ?string
    {
        if (null === ($file = $this->container->get('huh.utils.file')->getFileFromUuid($image))) {
            return null;
        }

        return $file->width;
    }
1068815
protected function makeAvatar( $image ) {
		$width    = $this->getWidth();
		$height   = $this->getHeight();
		$bgColor  = $this->getBackgroundColor();
		$name     = $this->getInitials();
		$fontFile = $this->findFontFile();
		$color    = $this->getColor();
		$fontSize = $this->getFontSize();

		if ( $this->getRounded() && $this->getSmooth() ) {
			$width *= 5;
			$height *= 5;
		}

		$avatar = $image->canvas( $width, $height, ! $this->getRounded() ? $bgColor : null );

		if ( $this->getRounded() ) {
			$avatar = $avatar->circle( $width - 2, $width / 2, $height / 2, function ( $draw ) use ( $bgColor ) {
				return $draw->background( $bgColor );
			} );
		}

		if ( $this->getRounded() && $this->getSmooth() ) {
			$width /= 5;
			$height /= 5;
			$avatar->resize( $width, $height );
		}

		return $avatar->text( $name, $width / 2, $height / 2, function ( AbstractFont $font ) use ( $width, $color, $fontFile, $fontSize ) {
			$font->file( $fontFile );
			$font->size( $width * $fontSize );
			$font->color( $color );
			$font->align( 'center' );
			$font->valign( 'center' );
		} );
	}
489461
public function setAlign($align)
    {
        if (!is_string($align) || !in_array(strtolower($align), ['left', 'right', 'center'], true)) {
            throw new Exception\InvalidArgumentException(__METHOD__ . ' Align param must be a string : right, left, center.');
        }
        $this->properties['align'] = $align;

        return $this;
    }
1119811
private function getText($image)
    {
        $rtn = '';
        $w = imagesx($image);
        $h = imagesy($image);
        for ($y = 0; $y < $h; ++$y) {
            for ($x = 0; $x < $w; ++$x) {
                $rgb = imagecolorat($image, $x, $y);
                $rtn .= $this->getDotFromRgb($rgb);
            }
        }

        return $rtn;
    }
1218941
public function getMetaHtml()
    {
        $meta = '';
        if (empty($this->meta)) {
            return $meta;
        }

        foreach ($this->meta as $name => $content) {
            $meta .= '<meta name="' . $name . '" content="' . $content . '"/>' . "\n";
        }

        return $meta;
    }
262244
public function addTable($alignment = PHPRtfLite_Table::ALIGN_LEFT)
    {
        $nestDepth = $this->_table->getNestDepth() + 1;
        $table = new PHPRtfLite_Table_Nested($this, $alignment, $nestDepth);
        $this->_elements[] = $table;

        return $table;
    }
1256600
public function offsetGet($offset): Image
    {
        return $this->offsetExists($offset) ? $this->extract_band($offset) : null;
    }
687941
public static function get_image_icon( $meta ) {
		$args = array(
			'class'       => sprintf( '%s _image', self::get_icon_classes( $meta ) ),
			'aria-hidden' => 'true',
		);

		$style = self::get_icon_style( $meta, array( 'vertical_align' ), false );
		if ( ! empty( $style ) ) {
			$args['style'] = $style;
		}

		return wp_get_attachment_image( $meta['icon'], $meta['image_size'], false, $args );
	}