Category : image

I am currently making a php crawler. All is fine except one thing. I save the link of some images from the crawled website and after that , I want to show them in a html img tag. But the problem is that the photo is not loading currently ( it shows something default) but ..

I have a system in Laravel hosted on hostinger, apparently out of nowhere the jpeg images return error 404, if I switch to png or another format it works normally, if I try to pull the link it returns page not Found, if I change it to png or another format I can access the ..

I am new to Laravel. I am trying to upload an image and isert it into a mockup tshirt image. I tried Image Intervention, but I could only insert an image to the mockup without taking the actual shape of the mockup. I tried Imagick but I couldn’t get it installed on windows xampp. bellow ..

I want to use different images for these three products. I have tried to change the images in the image directory but when I change one then it reflects for all three products. Meanwhile, they are all in different categories. Do I need to show codes? Sourc..

I will update the data its contain image, then when I will send to update here’s the error Call to a member function getClientOriginalName() This is my Controller public function updateBook(Request $request,$id){ $book = DB::table(‘books’)->where(‘id’,$id); $old =$book->select(‘images’); $ChecK = 0;$file = var_dump($request->file(‘images’)->getClientOriginalName());$filename = time().$file;$path = public_path(‘/Uploads’); if($request->hasFile(‘images’)){$file = $request->file(‘images’); .. Read more I will show the upload image but it shown a thumbnail, here is my Controller Code Upload a image file$file = $request->file(‘images’)->getClientOriginalName();$filename = time().$file;$path = base_path(‘/Uploads’); if($request->hasFile(‘images’)){$file = $request->file(‘images’);$file->move($path,$filename); DB::table(‘books’)->insert($filename); return redirect(‘home’)->with(‘status’, ‘insert succesfully’); } else { dd(‘Request Hash No File!’); } Here is my view @foreach ($booksDTL as ..

I have an image that stored into my database & I need to build a function that give me true or false if the image that sent into the request is the same one or similar to that stored in my database? I need to know if there any package in Laravel App or some ..

How can I implement a system like this in laravel? Detect whether the request came directly through a website or through a component. "The Google Maps Embed API must be used in an iframe." Like, google api detecting the request is came from a direct browser request. The Google Maps Embed API must be used ..

VIEW FILE <div class="col-sm-4"> <label>Other Images</label> <div class="input-group control-group img_div form-group" > <input type="file" name="image[]" class="form-control"> <div class="input-group-btn"> <button class="btn btn-success btn-add-more" type="button">Add</button> </div> </div> </div> <div>@foreach($image as$image) <p><img src="{{asset(‘/files/’.$image->images)}}" height="50px" id="{{$image->id}}" class="photo"/> <button class="removeimg" data-id="{{$image->id}}" data-token="{{ csrf_token() }}">Remove</button></p> @endforeach </div> AJAX$(document).ready( function () { $(document).on(‘click’, ‘.removeimg’,function(){ var confirmation = confirm("are you sure .. Read more I have this in view. It is able to upload alright but it won’t show. Is there anything more I should add? <div class="col-md-4"> <img class="img img-fluid img-thumbnail" src="/storage/profile_images/{{$profile->profile_image}}"/> </div> here is my show.blade.php file <div class="col-md-4"> <img class="img img-fluid img-thumbnail" src="/storage/profile_images/{{$profile->profile_image}}"/></div> Here is the player.blade.php file: @if(count($players) > 0) <?php $index = 0; ?> .. Read more greetings fellow programmers, I’m making images from text, and I was ordered to make it support ligatures. is it possible to do so? I’m using imagettftext & imagettfbbox from GD library Sourc.. Read more Resulta que tengo un modal el cual cargará la información de un producto específico seleccionado previamente de un listado. Dicho producto lo envió a través del evento onclick y lo trato con js para cargar dinamicamente la imagen del producto seleccionado en el modal, pero al querer realizar dicho proceso de diferente manera, me muestra .. Read more berita.blade.php https://i.stack.imgur.com/HVOx3.png img src=”{{ asset(‘/img/’.$berita->foto )}}” height=”50″ width=”50″ alt=”” srcset=”” BeritaController.php https://i.stack.imgur.com/z32Sc.png public function store(Request $request) {$af = $request->file(‘foto’)->store(‘public’);$ambilFoto = $af->getClientOriginalName();$cek_berita = Berita::where(‘judul_berita’, $request->judul_berita)->count(); if ($cek_berita == 0) { $berita = new Berita;$berita->jenis_berita = $request->jenis_berita;$berita->judul_berita = $request->judul_berita;$berita->isi_berita = $request->isi_berita;$berita->foto = $ambilFoto;$af->move(public_path().’/img/’, $ambilFoto);$berita->save(); Alert::success(‘Berhasil Tambah Berita’, ..

Hi everyone I have this problem where I am not able to display the images that I have in the storage folder. I already connected the storage folder to the public one with the symlink (php artisan storage:link) but every time I try to visualize it I get this error from the console: "Failed to ..

mshafnas OP Posted 1 hour ago Display Image From Ajax Response Hi developers, I am getting the image from ajax response with the header content-type image/jpeg, I would like to display it using the img tag. when I append the src of image to the response. it is not displaying the image. the response having ..

I am using spatie/media-library with my Laravel 8 project. In the model, I am writing a method to register a mediaCollection for a model. The issue I am facing is that during the conversion, the transparency is lost in the converted image. How can I resize the image without losing transparency in result image? Here ..

I have two related models, and when deleting a blog, I need to delete the post, I use the onDelete (‘cascade’) method, it works as it should, but I also need to delete the images that are stored in the storage folder. $table->unsignedBigInteger(‘blog_id’);$table->foreign(‘blog_id’) ->references(‘id’)->on(‘blogs’)->onDelete(‘cascade’); I added the delete function to the blog controller, but ..

I have two related models, and when deleting a blog, I need to delete the post, I use the onDelete (‘cascade’) method, it works as it should, but I also need to delete the images that are stored in the Storage folder, like this better to do? Images that are in the blog model are ..

I have this function in my controller that create post and try to upload images and video : public function view_add_posts(Request $request) {$data=$request->all();$rules=[ ‘video’ =>’mimes:mpeg,ogg,mp4,webm,3gp,mov,flv,avi,wmv,ts|max:50424405 |required’]; $validator = Validator($data,$rules); if($validator ){ $arr[‘categories’]=Category::all(); if ($request->ismethod(‘post’)){ $x=0; foreach($request->file(‘filenames’) as $file) {$x++; } $id= get_id(‘posts’);$post = new POST(); if($request->hasfile(‘video’)){$post->video=’yes’; } $post->id=$id; $post->category_id=$request->category_id; $post->title_ku=$request->title_ku; ..

I have a function to add an image, and upon successful addition in the database, we have a path like public/images/asd.png. The question is how to make sure that when added to the name of the picture, an ID is added, and we have something like public/images/asd1.png, public/images/asd2.png, etc. function in Model public function getOriginImageUrl() ..

I have two database tables to handle products. one product has multiple images which I am storing in the porduct_images table and storing just one thumbnail image in the product table using image intervation library. Now I am noticing that some product has no thumbnail image, the thumbnail_img field is empty. But, images have in ..

I uploaded different images of the product the problem is when I display it in a blade file it shows inverted not in the original form. See the Image below. In the above image on the right side is the original image when I upload it and display the images it shows inverted on the ..

I am getting error while resizing image in laravel using Intervention Image Link of the Library: http://image.intervention.io/ $featured_image =$request->file(‘featured_image’); $tmpFilePath = public_path(‘upload/properties/’); //Path to the Folder$name = ‘property_’.time().’.’.$featured_image->extension();$featured_image->move($tmpFilePath,$name); //Image resizing $image_original_path =$tmpFilePath.$name;$image_resize = Image::make($image_original_path);$image_resize->resize(383,251); $resize = public_path($tmpFilePath).’thumb_’.$name;$image_resize->save(\$resize); and getting below error InterventionImageExceptionNotWritableException Can’t write image data to ..