( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
if(!empty($row['params'])){
$params = json_decode("[".$row['params']."]");
$width = $params[0]->width;
$height = $params[0]->height;
}
if(!empty($_GET['convoId']))
{
$profile_image_url = $json[0]->user->profile_image_url;
$picme = str_replace("_normal","",$profile_image_url) ;
}
else{
$picme=profilepicture();
}
$layer_x=$row['left']['desktop'];
$layer_y=$row['top']['desktop'];
$layer_w=$row['width'];
$layer_h=$row['height'];
$layeropacity=$row['deformation']['opacity'];
$layer_r=$row['deformation']['xrotate'];
$str = $picme;
$brand =basename($str);
$brand =basename($str);
$brand=explode('&', $brand);
$brand=$brand[0];
$picture = explode('.',$picme);
$ext = strtolower($picture[1]);
$imageFolder ="v/uploads/gthumbs/$brand";
list($old_x, $old_y) = getimagesize($imageFolder);
if($old_x > $old_y)
{
$thumb_w = $layer_w;
$thumb_h = $old_y*($layer_h/$old_x);
$layer_y = $layer_y;
}
if($old_x < $old_y)
{
$thumb_w = $old_x*($layer_w/$old_y);
$thumb_h = $layer_h; $layer_y = $layer_y;
}
if($old_x == $old_y)
{
$thumb_w = $layer_w-7;
$thumb_h = $layer_w-7;
$layer_y = $layer_y-6;
}
if (file_exists($imageFolder)) {
}
else{
$page_directory = dirname($row['image_url']);
$parts=parse_url($page_directory);
$path_parts=explode('/', $parts['path']);
$page_directory = $path_parts[count($path_parts)-1];
copy("v/uploads/gthumbs/$page_directory/$brand", "v/uploads/gthumbs/$brand");
}
MakeGridPictureG($background, $brand , 100,10,10, 0, 0,10,10, $thumb_w,$thumb_h, $layer_x,$layer_y);
$themeid = $_GET["theme_id"];
$row = getParamJSONTheme($themeid);
if(!empty($row['params'])){
$params = json_decode("[".$row['params']."]");
$width = $params[0]->width;
$height = $params[0]->height;
}
/* if(!empty($_GET['convoId']))
{
$tweetIDX = $_GET['tweetIDX'];
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
if(!empty($url))
{
$newPic = $url;
MakeGridPictureTwitterX($background, $newPic , 100,10,10, 0, 0,10,10, $layer_w,$layer_h, $layer_x,$layer_y);
}
}*/
$layer_x=$row['left']['desktop'];
$layer_y=$row['top']['desktop'];
$layer_w=$row['width'];
$layer_h=$row['height'];
$layeropacity=$row['deformation']['opacity'];